X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=mw-config%2Findex.php;h=b625c96002c92ce47430890b0d2c045841b1413a;hb=7426d04a703580552fe27d06d3566f1ae63ae92f;hp=804d0a1159a4d7c2888a8bb28bbd43551da6bddc;hpb=5ebcd739dca8d39e593755bf7a09f5bf6b01837a;p=lhc%2Fweb%2Fwiklou.git diff --git a/mw-config/index.php b/mw-config/index.php index 804d0a1159..b625c96002 100644 --- a/mw-config/index.php +++ b/mw-config/index.php @@ -38,12 +38,13 @@ require dirname( __DIR__ ) . '/includes/WebStart.php'; wfInstallerMain(); function wfInstallerMain() { - global $wgRequest, $wgLang, $wgMetaNamespace, $wgCanonicalNamespaceNames; + global $wgLang, $wgMetaNamespace, $wgCanonicalNamespaceNames; + $request = RequestContext::getMain()->getRequest(); - $installer = InstallerOverrides::getWebInstaller( $wgRequest ); + $installer = InstallerOverrides::getWebInstaller( $request ); if ( !$installer->startSession() ) { - if ( $installer->request->getVal( "css" ) ) { + if ( $installer->request->getVal( 'css' ) ) { // Do not display errors on css pages $installer->outputCss(); exit; @@ -62,8 +63,8 @@ function wfInstallerMain() { $session = array(); } - if ( !is_null( $wgRequest->getVal( 'uselang' ) ) ) { - $langCode = $wgRequest->getVal( 'uselang' ); + if ( $request->getCheck( 'uselang' ) ) { + $langCode = $request->getVal( 'uselang' ); } elseif ( isset( $session['settings']['_UserLang'] ) ) { $langCode = $session['settings']['_UserLang']; } else {