From 4c7ff09b2898c29fea868bc27c6f225577bc87cf Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 8 Feb 2004 07:59:57 +0000 Subject: [PATCH] Use wgSiteMessage in no-database abort if it's set --- includes/Database.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Database.php b/includes/Database.php index d98715cc83..60069171af 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -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; -- 2.20.1