From: Magnus Manske Date: Thu, 31 Mar 2005 09:52:06 +0000 (+0000) Subject: Show link to validation on history page (for anons) X-Git-Tag: 1.5.0alpha1~447 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=3189295c065c4fe4f38aac5c9a67084cdb326dd2;p=lhc%2Fweb%2Fwiklou.git Show link to validation on history page (for anons) --- 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 ); }