*
*/
function wfSpecialImagelist() {
- global $wgUser, $wgOut, $wgLang, $wgRequest, $wgMiserMode;
+ global $wgUser, $wgOut, $wgLang, $wgContLang, $wgRequest, $wgMiserMode;
$sort = $wgRequest->getVal( 'sort' );
$wpIlMatch = $wgRequest->getText( 'wpIlMatch' );
$ul = $sk->makeLinkObj( Title::makeTitle( NS_USER, $ut ), $ut );
}
+ $dirmark = $wgContLang->getDirMark(); // to keep text in correct direction
+
$ilink = "<a href=\"" . htmlspecialchars( Image::imageUrl( $name ) ) .
"\">" . strtr(htmlspecialchars( $name ), '_', ' ') . "</a>";
$date = $wgLang->timeanddate( $s->img_timestamp, true );
$comment = $sk->commentBlock( $s->img_description );
- $l = "({$desc}) {$ilink} . . {$nb} . . {$ul} . . {$date} {$comment}<br />\n";
+ $l = "({$desc}) {$dirmark}{$ilink} . . {$dirmark}{$nb} . . {$dirmark}{$ul}".
+ " . . {$dirmark}{$date} . . {$dirmark}{$comment}<br />\n";
$wgOut->addHTML( $l );
}
global $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol;
$u = $result->user;
$ut = $result->user_text;
+ $dirmark = $wgContLang->getDirMark(); // To keep text in correct order
$length = wfMsgExt( 'nbytes', array('parsemag', 'escape'),
$wgLang->formatNum( $result->length ) );
$link = $skin->makeKnownLink( $ns . ':' . $result->title, '' );
}
- $userTools = $skin->userLink( $u, $ut ) . $skin->userToolLinks( $u, $ut );
+ $userLink = $skin->userLink( $u, $ut );
+ $userTools = $skin->userToolLinks( $u, $ut );
- $s = "{$d} {$link} ({$length}) . . {$userTools}";
- $s .= $skin->commentBlock( $result->comment );
+ $s = "{$d} {$dirmark}{$link} {$dirmark}({$length}) . . " .
+ "{$dirmark}{$userLink}{$dirmark}{$userTools}";
+ $s .= $dirmark . $skin->commentBlock( $result->comment );
return $s;
}
$title = Title::makeTitle( $result->namespace, $result->title );
$link = $skin->makeKnownLinkObj( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
$histlink = $skin->makeKnownLinkObj( $title, wfMsgHtml('hist'), 'action=history' );
- return "({$histlink}) $link ({$nb})";
+ $dirmark = $wgContLang->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
+
$return =
# The 'desc' linking to the image page
- '('.$skin->makeKnownLinkObj( $title, wfMsg('imgdesc') ).') '
+ '('.$skin->makeKnownLinkObj( $title, wfMsg('imgdesc') ).') ' . $dirmark .
+
# Link to the image itself
- . '<a href="' . $imageUrl . '">' . htmlspecialchars( $title->getText() ) . '</a>'
+ '<a href="' . $imageUrl . '">' . htmlspecialchars( $title->getText() ) .
+ '</a> . . ' . $dirmark .
+
# Last modified date
- . ' . . '.$wgLang->timeanddate($result->value)
+ $wgLang->timeanddate($result->value) . ' . . ' . $dirmark .
+
# Link to username
- . ' . . '.$skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text)
+ $skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ),
+ $result->img_user_text) . $dirmark .
+
# If there is a description, show it
- . $skin->commentBlock( $wgContLang->convert( $result->img_description ) );
+ $skin->commentBlock( $wgContLang->convert( $result->img_description ) );
return $return;
}
Title::makeTitle( NS_SPECIAL, 'Whatlinkshere' ),
wfMsgHtml( 'unusedtemplateswlh' ),
'target=' . $title->getPrefixedUrl() );
- return( $pageLink . ' (' . $wlhLink . ')' );
+ return wfSpecialList( $pageLink, $wlhLink );
}
function getPageHeader() {
$plink = $skin->makeKnownLinkObj( $nt, htmlspecialchars( $text ) );
$wlink = $skin->makeKnownLinkObj( $nt, wfMsgHtml( 'watch' ), 'action=watch' );
- return $plink . ' (' . $wlink . ')';
+ return wfSpecialList( $plink, $wlink );
}
}