From 04b593761c674a773a8b749e48f1ed72973d9305 Mon Sep 17 00:00:00 2001 From: Tom Gilder Date: Thu, 6 Oct 2005 03:18:52 +0000 Subject: [PATCH] Marginally better database error --- includes/Database.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Database.php b/includes/Database.php index 72f1e06a03..526e2b6791 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1711,8 +1711,7 @@ function wfEmergencyAbort( &$conn, $error ) { # I give up, Brion is right. Getting the message cache to work when there is no DB is tricky. # Hard coding strings instead. - $noconnect = 'Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server: $1.
-$1'; + $noconnect = '

Wiki 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