r2453 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2452‎ | r2453 | r2454 >
Date:07:59, 8 February 2004
Author:vibber
Status:old
Tags:
Comment:
Use wgSiteMessage in no-database abort if it's set
Modified paths:
  • /trunk/phase3/includes/Database.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Database.php
@@ -394,9 +394,10 @@
395395 /* Standard fail function, called by default when a connection cannot be established
396396 Displays the file cache if possible */
397397 function wfEmergencyAbort( &$conn ) {
398 - global $wgTitle, $wgUseFileCache, $title, $wgInputEncoding, $wgOutputEncoding;
 398+ global $wgTitle, $wgUseFileCache, $title, $wgInputEncoding, $wgSiteNotice, $wgOutputEncoding;
399399
400400 header( "Content-type: text/html; charset=$wgOutputEncoding" );
 401+ $msg = $wgSiteNotice;
401402 if($msg == "") $msg = wfMsgNoDB( "noconnect" );
402403 $text = $msg;
403404

Status & tagging log