diff options
Diffstat (limited to 'includes/specials/SpecialFewestrevisions.php')
-rw-r--r-- | includes/specials/SpecialFewestrevisions.php | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/includes/specials/SpecialFewestrevisions.php b/includes/specials/SpecialFewestrevisions.php index afd5ad48..65d76a65 100644 --- a/includes/specials/SpecialFewestrevisions.php +++ b/includes/specials/SpecialFewestrevisions.php @@ -53,15 +53,26 @@ class FewestrevisionsPage extends QueryPage { global $wgLang, $wgContLang; $nt = Title::makeTitleSafe( $result->namespace, $result->title ); + if( !$nt ) { + return '<!-- bad title -->'; + } + $text = $wgContLang->convert( $nt->getPrefixedText() ); - $plink = $skin->makeKnownLinkObj( $nt, $text ); + $plink = $skin->linkKnown( + $nt, + $text + ); - $nl = wfMsgExt( 'nrevisions', array( 'parsemag', 'escape'), + $nl = wfMsgExt( 'nrevisions', array( 'parsemag', 'escape' ), $wgLang->formatNum( $result->value ) ); - $redirect = $result->redirect ? ' - ' . wfMsg( 'isredirect' ) : ''; - $nlink = $skin->makeKnownLinkObj( $nt, $nl, 'action=history' ) . $redirect; - + $redirect = $result->redirect ? ' - ' . wfMsgHtml( 'isredirect' ) : ''; + $nlink = $skin->linkKnown( + $nt, + $nl, + array(), + array( 'action' => 'history' ) + ) . $redirect; return wfSpecialList( $plink, $nlink ); } |