* @todo document
* @package MediaWiki
*/
+
+include_once ( "SpecialValidate.php" ) ;
+
class PageHistory {
var $mArticle, $mTitle, $mSkin;
var $lastline, $lastdate;
function history() {
global $wgUser, $wgOut, $wgLang, $wgShowUpdatedMarker, $wgRequest,
- $wgTitle;
+ $wgTitle, $wgUseValidation ;
# If page hasn't changed, client can cache this
}
$s .= $this->endHistoryList( !$atend );
$s .= $numbar;
+
+ # Validation line
+ if ( isset ( $wgUseValidation ) && $wgUseValidation ) {
+ $s .= "<p>" . Validation::link2statistics ( $this->mArticle ) . "</p>" ;
+ }
+
$wgOut->addHTML( $s );
wfProfileOut( $fname );
}