}
function otherLanguages() {
- global $wgOut, $wgContLang, $wgHideInterlanguageLinks;
+ global $wgOut, $wgLang, $wgHideInterlanguageLinks;
if ( $wgHideInterlanguageLinks ) {
return '';
$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 ) {
$text == '' ? $l : $text );
}
- if ( $wgContLang->isRTL() ) {
+ if ( $wgLang->isRTL() ) {
$s .= '</span>';
}