X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=blobdiff_plain;f=mw-config%2Findex.php;h=926ac436b99982bca51b4ca4eccc17f5c82db92f;hb=4fd1f42d0b8f61fa970a5e1dbb37a0979a11e537;hp=be811dc980cf0240f31c171e0c99fe0b3db8f624;hpb=5d0a9bb42d34e399ab7607abd7945e88c21727f7;p=lhc%2Fweb%2Fwiklou.git diff --git a/mw-config/index.php b/mw-config/index.php index be811dc980..926ac436b9 100644 --- a/mw-config/index.php +++ b/mw-config/index.php @@ -22,7 +22,9 @@ // Bail on old versions of PHP, or if composer has not been run yet to install // dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. +// @codingStandardsIgnoreStart MediaWiki.Usage.DirUsage.FunctionFound require_once dirname( __FILE__ ) . '/../includes/PHPVersionCheck.php'; +// @codingStandardsIgnoreEnd wfEntryPointCheck( 'mw-config/index.php' ); define( 'MW_CONFIG_CALLBACK', 'Installer::overrideConfig' ); @@ -58,7 +60,7 @@ function wfInstallerMain() { if ( isset( $_SESSION['installData'][$fingerprint] ) ) { $session = $_SESSION['installData'][$fingerprint]; } else { - $session = array(); + $session = []; } if ( !is_null( $wgRequest->getVal( 'uselang' ) ) ) { @@ -69,6 +71,7 @@ function wfInstallerMain() { $langCode = 'en'; } $wgLang = Language::factory( $langCode ); + RequestContext::getMain()->setLanguage( $wgLang ); $installer->setParserLanguage( $wgLang );