X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnwatchedpages.php;h=4ad6ac077a3226eb0c8c86c046e06c4fe378378c;hb=38489f18c879e09c82b8b60fb346aeb14fdd340f;hp=fe0638e15dcd0ae8d919311ff0615bc54bb1c35c;hpb=f0edb3e368a5fc69218d20f76f1538b68f37db42;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnwatchedpages.php b/includes/specials/SpecialUnwatchedpages.php index fe0638e15d..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( @@ -72,6 +72,7 @@ class UnwatchedpagesPage extends QueryPage { /** * Add the JS + * @param string|null $par */ public function execute( $par ) { parent::execute( $par ); @@ -95,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 );