X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=mw-config%2Findex.php;h=b625c96002c92ce47430890b0d2c045841b1413a;hb=76a8bfa27824257b6e388aec4937fa041a8eb662;hp=804d0a1159a4d7c2888a8bb28bbd43551da6bddc;hpb=0098688a002524b2250451bb231cdad2a4bd54d1;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 {