X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstallerExistingWiki.php;h=0c7428fafc8ce616a328459ecc084f388e08a7c2;hb=8085c58a4b675c0c11c6454bdf15b3ba61022283;hp=1d17c940f43ec0eeab3b706297d225a1ef202521;hpb=aee411636760251314603c91733eb22a0335cd36;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstallerExistingWiki.php b/includes/installer/WebInstallerExistingWiki.php index 1d17c940f4..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 ) ); @@ -180,9 +180,7 @@ class WebInstallerExistingWiki extends WebInstallerPage { // Copy $wgAuthenticationTokenVersion too, if it exists $this->setVar( 'wgAuthenticationTokenVersion', - isset( $vars['wgAuthenticationTokenVersion'] ) - ? $vars['wgAuthenticationTokenVersion'] - : null + $vars['wgAuthenticationTokenVersion'] ?? null ); return $status;