From 3189295c065c4fe4f38aac5c9a67084cdb326dd2 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Thu, 31 Mar 2005 09:52:06 +0000 Subject: [PATCH] Show link to validation on history page (for anons) --- includes/PageHistory.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 3c32192821..6f88b8af22 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -10,6 +10,9 @@ * @todo document * @package MediaWiki */ + +include_once ( "SpecialValidate.php" ) ; + class PageHistory { var $mArticle, $mTitle, $mSkin; var $lastline, $lastdate; @@ -23,7 +26,7 @@ class PageHistory { function history() { global $wgUser, $wgOut, $wgLang, $wgShowUpdatedMarker, $wgRequest, - $wgTitle; + $wgTitle, $wgUseValidation ; # If page hasn't changed, client can cache this @@ -152,6 +155,12 @@ class PageHistory { } $s .= $this->endHistoryList( !$atend ); $s .= $numbar; + + # Validation line + if ( isset ( $wgUseValidation ) && $wgUseValidation ) { + $s .= "

" . Validation::link2statistics ( $this->mArticle ) . "

" ; + } + $wgOut->addHTML( $s ); wfProfileOut( $fname ); } -- 2.20.1