Declare 2 variables to be global to avoid reference error
authorrillke <rainerrillke@hotmail.com>
Tue, 15 Jul 2014 07:59:11 +0000 (09:59 +0200)
committerrillke <rainerrillke@hotmail.com>
Tue, 15 Jul 2014 07:59:11 +0000 (09:59 +0200)
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

index d590a70..4d86d11 100644 (file)
@@ -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;
                }