summaryrefslogtreecommitdiff
path: root/includes/installer/WebInstallerOutput.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
commitd9022f63880ce039446fba8364f68e656b7bf4cb (patch)
tree16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/installer/WebInstallerOutput.php
parent27cf83d177256813e2e802241085fce5dd0f3fb9 (diff)
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/installer/WebInstallerOutput.php')
-rw-r--r--includes/installer/WebInstallerOutput.php13
1 files changed, 2 insertions, 11 deletions
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"></a>
</div>
- <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
<div class="portal"><div class="body">
<?php
echo $this->parent->parse( wfMsgNoTrans( 'config-sidebar' ), true );