From 2cfe4097719ae5bbba0ef9c4edff386dacb78fcb Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 12 Jul 2011 17:22:23 +0000 Subject: [PATCH] * Added token to watch links * Call Linker methods statically --- includes/specials/SpecialUnwatchedpages.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ); -- 2.20.1