Use wgSiteMessage in no-database abort if it's set
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Feb 2004 07:59:57 +0000 (07:59 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 8 Feb 2004 07:59:57 +0000 (07:59 +0000)
includes/Database.php

index d98715c..6006917 100644 (file)
@@ -394,9 +394,10 @@ class Database {
 /* Standard fail function, called by default when a connection cannot be established
    Displays the file cache if possible */
 function wfEmergencyAbort( &$conn ) {
-       global $wgTitle, $wgUseFileCache, $title, $wgInputEncoding, $wgOutputEncoding;
+       global $wgTitle, $wgUseFileCache, $title, $wgInputEncoding, $wgSiteNotice, $wgOutputEncoding;
        
        header( "Content-type: text/html; charset=$wgOutputEncoding" );
+       $msg = $wgSiteNotice;
        if($msg == "") $msg = wfMsgNoDB( "noconnect" );
        $text = $msg;