From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/installer/WebInstallerOutput.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'includes/installer/WebInstallerOutput.php') diff --git a/includes/installer/WebInstallerOutput.php b/includes/installer/WebInstallerOutput.php index 9eb2c2c6..ac97b37d 100644 --- a/includes/installer/WebInstallerOutput.php +++ b/includes/installer/WebInstallerOutput.php @@ -144,11 +144,7 @@ class WebInstallerOutput { */ public function getDir() { global $wgLang; - if( !is_object( $wgLang ) || !$wgLang->isRtl() ) { - return 'ltr'; - } else { - return 'rtl'; - } + return is_object( $wgLang ) ? $wgLang->getDir() : 'ltr'; } /** @@ -156,11 +152,7 @@ class WebInstallerOutput { */ public function getLanguageCode() { global $wgLang; - if( !is_object( $wgLang ) ) { - return 'en'; - } else { - return $wgLang->getCode(); - } + return is_object( $wgLang ) ? $wgLang->getCode() : 'en'; } /** @@ -240,7 +232,6 @@ class WebInstallerOutput { href="http://www.mediawiki.org/" title="Main Page"> -
parent->parse( wfMsgNoTrans( 'config-sidebar' ), true ); -- cgit v1.2.3-54-g00ecf