Merge "Web installer should not pollute global namespace with session variables"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 24 Oct 2015 04:38:46 +0000 (04:38 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 24 Oct 2015 04:38:46 +0000 (04:38 +0000)
includes/installer/Installer.php
includes/installer/WebInstaller.php

index 064bd6d..91589e1 100644 (file)
@@ -691,17 +691,6 @@ abstract class Installer {
                return Status::newGood();
        }
 
-       /**
-        * Exports all wg* variables stored by the installer into global scope.
-        */
-       public function exportVars() {
-               foreach ( $this->settings as $name => $value ) {
-                       if ( substr( $name, 0, 2 ) == 'wg' ) {
-                               $GLOBALS[$name] = $value;
-                       }
-               }
-       }
-
        /**
         * Environment check for DB types.
         * @return bool
index 67a4def..9edc25a 100644 (file)
@@ -159,7 +159,6 @@ class WebInstaller extends Installer {
                        $this->settings = $session['settings'] + $this->settings;
                }
 
-               $this->exportVars();
                $this->setupLanguage();
 
                if ( ( $this->getVar( '_InstallDone' ) || $this->getVar( '_UpgradeDone' ) )