From: Alexandre Emsenhuber Date: Tue, 12 Jul 2011 17:22:23 +0000 (+0000) Subject: * Added token to watch links X-Git-Tag: 1.31.0-rc.0~28906 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=2cfe4097719ae5bbba0ef9c4edff386dacb78fcb;p=lhc%2Fweb%2Fwiklou.git * Added token to watch links * Call Linker methods statically --- diff --git a/includes/specials/SpecialUnwatchedpages.php b/includes/specials/SpecialUnwatchedpages.php index 86aa2b2d41..0f11140b2d 100644 --- a/includes/specials/SpecialUnwatchedpages.php +++ b/includes/specials/SpecialUnwatchedpages.php @@ -71,15 +71,16 @@ class UnwatchedpagesPage extends QueryPage { $nt = Title::makeTitle( $result->namespace, $result->title ); $text = $wgContLang->convert( $nt->getPrefixedText() ); - $plink = $skin->linkKnown( + $plink = Linker::linkKnown( $nt, htmlspecialchars( $text ) ); - $wlink = $skin->linkKnown( + $token = WatchAction::getWatchToken( $nt, $this->getUser() ); + $wlink = Linker::linkKnown( $nt, wfMsgHtml( 'watch' ), array(), - array( 'action' => 'watch' ) + array( 'action' => 'watch', 'token' => $token ) ); return wfSpecialList( $plink, $wlink );