}
function wfSpecialList( $page, $details ) {
- global $wgContLang;
- $details = $details ? ' ' . $wgContLang->getDirMark() . "($details)" : "";
+ global $wgLang, $wgContLang;
+
+ if ($wgLang->isRTL() != $wgContLang->isRTL()) {
+ $page = "<span" . contentdir() . ">$page</span>";
+ }
+ $details = $details ? ' ' . $wgLang->getDirMark() . "($details)" : "";
return $page . $details;
}
$ul = $sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut );
}
- $dirmark = $wgContLang->getDirMark(); // to keep text in correct direction
+ $dirmark = $wgLang->getDirMark(); // to keep text in correct direction
$ilink = "<a href=\"" . htmlspecialchars( Image::imageUrl( $name ) ) .
"\">" . strtr(htmlspecialchars( $name ), '_', ' ') . "</a>";
global $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol;
$u = $result->user;
$ut = $result->user_text;
- $dirmark = $wgContLang->getDirMark(); // To keep text in correct order
+ $dirmark = $wgLang->getDirMark(); // To keep text in correct order
$length = wfMsgExt( 'nbytes', array('parsemag', 'escape'),
$wgLang->formatNum( $result->length ) );
$title = Title::makeTitle( $result->namespace, $result->title );
$link = $skin->makeKnownLinkObj( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
$histlink = $skin->makeKnownLinkObj( $title, wfMsgHtml('hist'), 'action=history' );
- $dirmark = $wgContLang->getDirMark();
+ $dirmark = $wgLang->getDirMark();
return "({$histlink}) {$dirmark}$link {$dirmark}({$nb})";
}
$title = Title::makeTitle( NS_IMAGE, $result->title );
$imageUrl = htmlspecialchars( Image::imageUrl( $result->title ) );
- $dirmark = $wgContLang->getDirMark(); // To keep text in correct order
+ $dirmark = $wgLang->getDirMark(); // To keep text in correct order
$return =
# The 'desc' linking to the image page