From: Derick Alangi Date: Sat, 9 Mar 2019 13:22:30 +0000 (+0100) Subject: installer: Code augmentation in wfInstallerMain function X-Git-Tag: 1.34.0-rc.0~2569^2 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=770ee8237400b57127fb6b7b0605774ea3719cea;p=lhc%2Fweb%2Fwiklou.git installer: Code augmentation in wfInstallerMain function Cleanup null checks and string literals in wfInstallerMain function. Change-Id: Ib117e05faf899b0c46820d337f1bd3ebd4272419 --- diff --git a/mw-config/index.php b/mw-config/index.php index 899f21ef66..df3f6e5500 100644 --- a/mw-config/index.php +++ b/mw-config/index.php @@ -44,7 +44,7 @@ function wfInstallerMain() { $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; @@ -63,7 +63,7 @@ function wfInstallerMain() { $session = array(); } - if ( !is_null( $request->getVal( 'uselang' ) ) ) { + if ( $request->getVal( 'uselang' ) !== null ) { $langCode = $request->getVal( 'uselang' ); } elseif ( isset( $session['settings']['_UserLang'] ) ) { $langCode = $session['settings']['_UserLang'];