}
function wfSpecialList( $page, $details ) {
- global $wgContLang;
- $details = $details ? ' ' . $wgContLang->getDirMark() . "($details)" : '';
+ $details = $details ? ' ' . wfUILang()->getDirMark() . "($details)" : '';
return $page . $details;
}
}
private function logComment( $row ) {
- global $wgContLang;
if( self::isDeleted( $row, LogPage::DELETED_COMMENT ) ) {
$comment = '<span class="history-deleted">' .
wfMsgHtml( 'rev-deleted-comment' ) . '</span>';
} else {
- $comment = $wgContLang->getDirMark() .
+ $comment = wfUILang()->getDirMark() .
$this->skin->commentBlock( $row->log_comment );
}
return $comment;
* @return String
*/
function formatResult( $skin, $result ) {
- global $wgUser, $wgContLang, $wgLang;
+ global $wgUser, $wgLang;
$fromObj = Title::makeTitle( $result->namespace, $result->title );
if ( isset( $result->rd_title ) ) {
array(),
array( 'broken' )
);
- $arr = $wgContLang->getArrow();
+ $arr = wfUILang()->getArrow();
$out = $from . wfMsg( 'word-separator' );
* @todo This would probably look a lot nicer in a table.
*/
function formatRow( $row ) {
- global $wgUser, $wgLang, $wgContLang;
+ global $wgUser, $wgLang;
wfProfileIn( __METHOD__ );
$sk = $this->getSkin();
array( 'action' => 'history' )
);
- $comment = $wgContLang->getDirMark() . $sk->revComment( $rev, false, true );
+ $comment = wfUILang()->getDirMark() . $sk->revComment( $rev, false, true );
$date = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true );
if( $rev->userCan( Revision::DELETED_TEXT ) ) {
$d = $sk->linkKnown(
}
function formatResult( $skin, $result ) {
- global $wgContLang;
$title = Title::newFromID( $result->value );
$dp = Title::makeTitle( $result->namespace, $result->title );
$from = $skin->link( $title );
$edit = $skin->link( $title, wfMsgExt( 'parentheses', array( 'escape' ), wfMsg( 'editlink' ) ) ,
array(), array( 'redirect' => 'no', 'action' => 'edit' ) );
- $arr = $wgContLang->getArrow();
+ $arr = wfUILang()->getArrow();
$to = $skin->link( $dp );
return "$from $edit $arr $to";
}
function formatResult( $skin, $result ) {
- global $wgContLang;
-
$titleA = Title::makeTitle( $result->namespace, $result->title );
if ( $result && !isset( $result->nsb ) ) {
array( 'redirect' => 'no' )
);
$linkC = $skin->linkKnown( $titleC );
- $arr = $wgContLang->getArrow() . $wgContLang->getDirMark();
+ $arr = wfUILang()->getArrow() . wfUILang()->getDirMark();
return( "{$linkA} {$edit} {$arr} {$linkB} {$arr} {$linkC}" );
}
}
function execute( $par ) {
- global $wgRequest, $wgOut, $wgLang, $wgContLang, $wgScript;
+ global $wgRequest, $wgOut, $wgLang, $wgScript;
$this->setHeaders();
$this->outputHeader();
}
if( $this->hash != '' ) {
- $align = $wgContLang->alignEnd();
+ $align = wfUILang()->alignEnd();
# Show a thumbnail of the file
$img = $this->file;
}
function formatResult( $skin, $result ) {
- global $wgContLang;
-
# Make a link to the redirect itself
$rd_title = Title::makeTitle( $result->namespace, $result->title );
$rd_link = $skin->link(
$target = $this->getRedirectTarget( $result );
if( $target ) {
# Make a link to the destination page
- $arr = $wgContLang->getArrow() . $wgContLang->getDirMark();
+ $arr = wfUILang()->getArrow() . wfUILang()->getDirMark();
$targetLink = $skin->link( $target );
return "$rd_link $arr $targetLink";
} else {
* @return String
*/
public function formatRow( $result ) {
- global $wgLang, $wgContLang;
+ global $wgLang;
# Revision deletion works on revisions, so we should cast one
$row = array(
$classes = array();
- $dm = $wgContLang->getDirMark();
+ $dm = wfUILang()->getDirMark();
$title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title );
$time = Html::element( 'span', array( 'class' => 'mw-newpages-time' ),
* @return string Formatted <li> element
*/
public function formatRow( $row ) {
- global $wgUser, $wgLang, $wgContLang;
+ global $wgUser, $wgLang;
wfProfileIn( __METHOD__ );
}
if(!is_null($size = $row->page_len)) {
- $stxt = $wgContLang->getDirMark() . ' ' . $skin->formatRevisionSize( $size );
+ $stxt = wfUILang()->getDirMark() . ' ' . $skin->formatRevisionSize( $size );
}
# Show a link to the change protection form for allowed users otherwise a link to the protection log
}
function formatResult( $skin, $result ) {
- global $wgLang, $wgContLang;
- $dm = $wgContLang->getDirMark();
+ global $wgLang;
+ $dm = wfUILang()->getDirMark();
$title = Title::makeTitle( $result->namespace, $result->title );
if ( !$title ) {
* main()
*/
public function execute( $par ) {
- global $wgOut, $wgSpecialVersionShowHooks, $wgContLang, $wgRequest;
+ global $wgOut, $wgSpecialVersionShowHooks, $wgRequest;
$this->setHeaders();
$this->outputHeader();