From 770ee8237400b57127fb6b7b0605774ea3719cea Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Sat, 9 Mar 2019 14:22:30 +0100 Subject: [PATCH] installer: Code augmentation in wfInstallerMain function Cleanup null checks and string literals in wfInstallerMain function. Change-Id: Ib117e05faf899b0c46820d337f1bd3ebd4272419 --- mw-config/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']; -- 2.20.1