Merge "installer: Add a defined check to overrideConfig method"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 20 Jul 2019 06:20:45 +0000 (06:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 20 Jul 2019 06:20:45 +0000 (06:20 +0000)
1  2 
includes/installer/Installer.php

@@@ -1764,7 -1764,9 +1764,9 @@@ abstract class Installer 
        public static function overrideConfig() {
                // Use PHP's built-in session handling, since MediaWiki's
                // SessionHandler can't work before we have an object cache set up.
-               define( 'MW_NO_SESSION_HANDLER', 1 );
+               if ( !defined( 'MW_NO_SESSION_HANDLER' ) ) {
+                       define( 'MW_NO_SESSION_HANDLER', 1 );
+               }
  
                // Don't access the database
                $GLOBALS['wgUseDatabaseMessages'] = false;
        /**
         * Add an installation step following the given step.
         *
 -       * @param callable $callback A valid installation callback array, in this form:
 +       * @param array $callback A valid installation callback array, in this form:
         *    [ 'name' => 'some-unique-name', 'callback' => [ $obj, 'function' ] ];
         * @param string $findStep The step to find. Omit to put the step at the beginning
         */