X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstallerExistingWiki.php;h=0c7428fafc8ce616a328459ecc084f388e08a7c2;hb=8085c58a4b675c0c11c6454bdf15b3ba61022283;hp=2c08c9c729fb90bdc86ff46d1fa39ef29aa53b64;hpb=f56a905990f579a81f15ce636ab03758c15690df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstallerExistingWiki.php b/includes/installer/WebInstallerExistingWiki.php index 2c08c9c729..0c7428fafc 100644 --- a/includes/installer/WebInstallerExistingWiki.php +++ b/includes/installer/WebInstallerExistingWiki.php @@ -103,11 +103,11 @@ class WebInstallerExistingWiki extends WebInstallerPage { $this->addHTML( $this->parent->getInfoBox( wfMessage( 'config-localsettings-upgrade' )->plain() ) . '
' . - $this->parent->getTextBox( array( + $this->parent->getTextBox( [ 'var' => 'wgUpgradeKey', 'label' => 'config-localsettings-key', - 'attribs' => array( 'autocomplete' => 'off' ), - ) ) + 'attribs' => [ 'autocomplete' => 'off' ], + ] ) ); $this->endForm( 'continue' ); } @@ -146,7 +146,7 @@ class WebInstallerExistingWiki extends WebInstallerPage { } // Set the relevant variables from LocalSettings.php - $requiredVars = array( 'wgDBtype' ); + $requiredVars = [ 'wgDBtype' ]; $status = $this->importVariables( $requiredVars, $vars ); $installer = $this->parent->getDBInstaller(); $status->merge( $this->importVariables( $installer->getGlobalNames(), $vars ) ); @@ -178,6 +178,11 @@ class WebInstallerExistingWiki extends WebInstallerPage { // All good $this->setVar( '_ExistingDBSettings', true ); + // Copy $wgAuthenticationTokenVersion too, if it exists + $this->setVar( 'wgAuthenticationTokenVersion', + $vars['wgAuthenticationTokenVersion'] ?? null + ); + return $status; }