not sure if this span is really needed, but in any case it depends on user language...
authorRobin Pepermans <robin@users.mediawiki.org>
Mon, 12 Dec 2011 22:05:40 +0000 (22:05 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Mon, 12 Dec 2011 22:05:40 +0000 (22:05 +0000)
includes/SkinLegacy.php

index 3e1d698..abb7447 100644 (file)
@@ -345,7 +345,7 @@ class LegacyTemplate extends BaseTemplate {
        }
 
        function otherLanguages() {
-               global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
+               global $wgOut, $wgLang, $wgHideInterlanguageLinks;
 
                if ( $wgHideInterlanguageLinks ) {
                        return '';
@@ -360,8 +360,8 @@ class LegacyTemplate extends BaseTemplate {
                $s = wfMsg( 'otherlanguages' ) . wfMsg( 'colon-separator' );
                $first = true;
 
-               if ( $wgContLang->isRTL() ) {
-                       $s .= '<span dir="LTR">';
+               if ( $wgLang->isRTL() ) {
+                       $s .= '<span dir="ltr">';
                }
 
                foreach ( $a as $l ) {
@@ -379,7 +379,7 @@ class LegacyTemplate extends BaseTemplate {
                                $text == '' ? $l : $text );
                }
 
-               if ( $wgContLang->isRTL() ) {
+               if ( $wgLang->isRTL() ) {
                        $s .= '</span>';
                }