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)
includes/installer/Installer.php

index 33d4fcc..f6a5c41 100644 (file)
@@ -1764,7 +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;