Bug 32673: Keep the username in the input field if not existing
[lhc/web/wiklou.git] / includes / specials / SpecialUnwatchedpages.php
index 86aa2b2..22c6485 100644 (file)
@@ -71,17 +71,18 @@ 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 );
+               return $this->getLanguage()->specialList( $plink, $wlink );
        }
 }