r55233 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55232‎ | r55233 | r55234 >
Date:12:01, 18 August 2009
Author:demon
Status:deferred
Tags:
Comment:
Show ltr/rtl class in <body>, based on chosen installer language. Fixes link spacing issue.
Modified paths:
  • /branches/new-installer/phase3/includes/installer/WebInstallerOutput.php (modified) (history)

Diff [purge]

Index: branches/new-installer/phase3/includes/installer/WebInstallerOutput.php
@@ -57,6 +57,14 @@
5858 }
5959 }
6060
 61+ function getDir() {
 62+ global $wgLang;
 63+ if( !is_object( $wgLang ) || !$wgLang->isRtl() )
 64+ return 'ltr';
 65+ else
 66+ return 'rtl';
 67+ }
 68+
6169 function outputHeader() {
6270 global $wgVersion;
6371 $this->headerDone = true;
@@ -89,7 +97,7 @@
9098 <script type="text/javascript" src="../skins/common/config.js"></script>
9199 </head>
92100
93 -<body>
 101+<body class="<?php print $this->getDir(); ?>">
94102 <noscript>
95103 <style>
96104 .config-help-message { display: block; }

Status & tagging log