* Restored the page shown when LocalSettings.php is missing to how it was before...
[lhc/web/wiklou.git] / index.php
index c7d0f92..36c9974 100644 (file)
--- a/index.php
+++ b/index.php
@@ -180,9 +180,15 @@ function wfDie( $errorMsg ){
        $version = isset( $wgVersion ) && $wgVersion
                ? htmlspecialchars( $wgVersion )
                : '';
+
+       $script = $_SERVER['SCRIPT_NAME'];
+       $path = pathinfo( $script, PATHINFO_DIRNAME ) . '/';
+       $path = str_replace( '//', '/', $path );
+
        $logo = isset( $wgLogo ) && $wgLogo
                ? $wgLogo
-               : 'http://upload.wikimedia.org/wikipedia/commons/1/1c/MediaWiki_logo.png';
+               : $path . 'skins/common/images/mediawiki.png';
+       $encLogo = htmlspecialchars( $logo );
 
        header( $_SERVER['SERVER_PROTOCOL'] . ' 500 MediaWiki configuration Error', true, 500 );
        header( 'Content-type: text/html; charset=UTF-8' );