From 67d8411c6e924b368b98f28230cef39fcc46072e Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 15 Jan 2006 14:06:29 +0000 Subject: [PATCH] Add a link to history. Usefull for vandalism tracking & speedy deletion --- includes/SpecialShortpages.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialShortpages.php b/includes/SpecialShortpages.php index e878a2aacc..4c1c053e86 100644 --- a/includes/SpecialShortpages.php +++ b/includes/SpecialShortpages.php @@ -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})"; } } -- 2.20.1