]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/specials/SpecialFewestrevisions.php
MediaWiki 1.16.0
[autoinstallsdev/mediawiki.git] / includes / specials / SpecialFewestrevisions.php
index afd5ad48a5a31137c0780f3b4f08c3c1ecb290a3..65d76a6584c24dd4ea319c6a1295c3a51c99c3c0 100644 (file)
@@ -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 );
        }