From dca313e90b7c694396d4cb80c0147b5a442bbee0 Mon Sep 17 00:00:00 2001 From: rillke Date: Tue, 15 Jul 2014 09:59:11 +0200 Subject: [PATCH] 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 --- includes/installer/MssqlUpdater.php | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.20.1