X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnwatchedpages.php;h=4ad6ac077a3226eb0c8c86c046e06c4fe378378c;hb=b9fbbba4af3e56b504240fc32d1c9199f4444212;hp=bb07c1975918ff644e0d4900b7303d85e561ed05;hpb=96366c1cf1966ca07e8f0b4361bbca28bfaf43a0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnwatchedpages.php b/includes/specials/SpecialUnwatchedpages.php index bb07c19759..4ad6ac077a 100644 --- a/includes/specials/SpecialUnwatchedpages.php +++ b/includes/specials/SpecialUnwatchedpages.php @@ -35,7 +35,7 @@ class UnwatchedpagesPage extends QueryPage { parent::__construct( $name, 'unwatchedpages' ); } - function isExpensive() { + public function isExpensive() { return true; } @@ -43,7 +43,7 @@ class UnwatchedpagesPage extends QueryPage { return false; } - function getQueryInfo() { + public function getQueryInfo() { return array( 'tables' => array( 'page', 'watchlist' ), 'fields' => array( @@ -96,12 +96,11 @@ class UnwatchedpagesPage extends QueryPage { $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 );