parent::__construct( $name, 'unwatchedpages' );
}
- function isExpensive() {
+ public function isExpensive() {
return true;
}
return false;
}
- function getQueryInfo() {
+ public function getQueryInfo() {
return array(
'tables' => array( 'page', 'watchlist' ),
'fields' => array(
/**
* Add the JS
+ * @param string|null $par
*/
public function execute( $par ) {
parent::execute( $par );
$text = $wgContLang->convert( $nt->getPrefixedText() );
$plink = Linker::linkKnown( $nt, htmlspecialchars( $text ) );
- $token = WatchAction::getWatchToken( $nt, $this->getUser() );
$wlink = Linker::linkKnown(
$nt,
$this->msg( 'watch' )->escaped(),
array( 'class' => 'mw-watch-link' ),
- array( 'action' => 'watch', 'token' => $token )
+ array( 'action' => 'watch' )
);
return $this->getLanguage()->specialList( $plink, $wlink );