Add a link to history. Usefull for vandalism tracking & speedy deletion
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 15 Jan 2006 14:06:29 +0000 (14:06 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 15 Jan 2006 14:06:29 +0000 (14:06 +0000)
includes/SpecialShortpages.php

index e878a2a..4c1c053 100644 (file)
@@ -53,10 +53,11 @@ class ShortPagesPage extends QueryPage {
 
        function formatResult( $skin, $result ) {
                global $wgLang, $wgContLang;
-               $nb = htmlspecialchars( wfMsg( "nbytes", $wgLang->formatNum( $result->value ) ) );
+               $nb = htmlspecialchars( wfMsg( 'nbytes', $wgLang->formatNum( $result->value ) ) );
                $title = Title::makeTitle( $result->namespace, $result->title );
                $link = $skin->makeKnownLinkObj( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
-               return "{$link} ({$nb})";
+               $histlink = $skin->makeKnownLinkObj( $title, wfMsg('hist'), 'action=history' );
+               return "({$histlink}) $link ({$nb})";
        }
 }