From: rillke Date: Tue, 15 Jul 2014 07:59:11 +0000 (+0200) Subject: Declare 2 variables to be global to avoid reference error X-Git-Tag: 1.31.0-rc.0~14948 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=dca313e90b7c694396d4cb80c0147b5a442bbee0;p=lhc%2Fweb%2Fwiklou.git Declare 2 variables to be global to avoid reference error This fixes a bug introduced in Ic7fc3bd8362 resulting in the updater aborting when attempting to update the constraints with a fatal error due to missing $wgDBname, $wgDBmwschema in the current scope. Change-Id: I7bbaef2175f81ab843ad09fe92c10dba1257a184 --- diff --git a/includes/installer/MssqlUpdater.php b/includes/installer/MssqlUpdater.php index d590a709fc..4d86d116d7 100644 --- a/includes/installer/MssqlUpdater.php +++ b/includes/installer/MssqlUpdater.php @@ -65,6 +65,8 @@ class MssqlUpdater extends DatabaseUpdater { * @return bool False if patch is skipped. */ protected function updateConstraints( $constraintType, $table, $field ) { + global $wgDBname, $wgDBmwschema; + if ( !$this->doTable( $table ) ) { return true; }