From 6dab8d553e7661fe07e47ee91fe0e96c66f4bbc1 Mon Sep 17 00:00:00 2001 From: Bill Pirkle Date: Wed, 1 Aug 2018 09:21:13 -0500 Subject: [PATCH] Remove deprecated variable usage from Maintenance.php Idead2c11c4 deprecated and made nonfunctional the $wgShowSQLErrors variable, but failed to remove its usage from Maintenance.php. This commit removes that usage and replaces it with the new perferred method of enabling detailed output. Bug: T165768 Change-Id: I98620ddd493703863755f426dd54f7a4e5ae05f1 --- maintenance/Maintenance.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index c4a7594405..d919249030 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1118,7 +1118,7 @@ abstract class Maintenance { * Handle some last-minute setup here. */ public function finalSetup() { - global $wgCommandLineMode, $wgShowSQLErrors, $wgServer; + global $wgCommandLineMode, $wgServer, $wgShowExceptionDetails, $wgShowHostnames; global $wgDBadminuser, $wgDBadminpassword, $wgDBDefaultGroup; global $wgDBuser, $wgDBpassword, $wgDBservers, $wgLBFactoryConf; @@ -1177,7 +1177,8 @@ abstract class Maintenance { $this->afterFinalSetup(); - $wgShowSQLErrors = true; + $wgShowExceptionDetails = true; + $wgShowHostnames = true; Wikimedia\suppressWarnings(); set_time_limit( 0 ); -- 2.20.1