From 849028aefffb507d097c88dbdb7b8a1e1bfa8264 Mon Sep 17 00:00:00 2001 From: Tom Gilder Date: Thu, 6 Oct 2005 03:24:02 +0000 Subject: [PATCH] Even better: use the site name and logo to look all pretty whilst buggered, like a cheap whore with too much makeup --- includes/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Database.php b/includes/Database.php index 526e2b6791..51d2e745ad 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1706,12 +1706,12 @@ class ResultWrapper { */ function wfEmergencyAbort( &$conn, $error ) { global $wgTitle, $wgUseFileCache, $title, $wgInputEncoding, $wgOutputEncoding; - global $wgSitename, $wgServer, $wgMessageCache; + global $wgSitename, $wgServer, $wgMessageCache, $wgLogo; # I give up, Brion is right. Getting the message cache to work when there is no DB is tricky. # Hard coding strings instead. - $noconnect = '

Wiki currently offline

Sorry! This site is experiencing technical difficulties.

(Can\'t contact the database server: $1)

'; + $noconnect = "

$wgSitename is currently offline

Sorry! This site is experiencing technical difficulties.

(Can't contact the database server: $1)

"; $mainpage = 'Main Page'; $searchdisabled = <<$wgSitename search is disabled for performance reasons. You can search via Google in the meantime. -- 2.20.1