From f00be48ae338dd7a9a6ed5989c32bfd6f8a3a277 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 13 Nov 2011 21:42:57 +0000 Subject: [PATCH] Bug 32379 - DatabaseError.php is hardcoding http Also tidy up a couple of returns (per others in method, and/or parents) --- includes/db/DatabaseError.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/db/DatabaseError.php b/includes/db/DatabaseError.php index d7bfe93312..1c48f29be6 100644 --- a/includes/db/DatabaseError.php +++ b/includes/db/DatabaseError.php @@ -176,7 +176,7 @@ class DBConnectionError extends DBError { } # We can't, cough and die in the usual fashion - return parent::reportHTML(); + parent::reportHTML(); } /** @@ -198,7 +198,7 @@ class DBConnectionError extends DBError {
$usegoogle
$outofdate
-
+ @@ -223,7 +223,7 @@ EOT; global $wgTitle, $wgOut, $wgRequest; if ( $wgOut->isDisabled() ) { - return; // Done already? + return ''; // Done already? } if ( $wgTitle ) { // use $wgTitle if we managed to set it @@ -255,7 +255,7 @@ class DBQueryError extends DBError { public $error, $errno, $sql, $fname; function __construct( DatabaseBase &$db, $error, $errno, $sql, $fname ) { - $message = "A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script\n" . + $message = "A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: //www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script\n" . "Query: $sql\n" . "Function: $fname\n" . "Error: $errno $error\n"; -- 2.20.1