Use local context to get message
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 13 Feb 2012 16:43:43 +0000 (16:43 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 13 Feb 2012 16:43:43 +0000 (16:43 +0000)
includes/specials/SpecialUnwatchedpages.php

index 22c6485..c4f99f8 100644 (file)
@@ -78,7 +78,7 @@ class UnwatchedpagesPage extends QueryPage {
                $token = WatchAction::getWatchToken( $nt, $this->getUser() );
                $wlink = Linker::linkKnown(
                        $nt,
-                       wfMsgHtml( 'watch' ),
+                       $this->msg( 'watch' )->escaped(),
                        array(),
                        array( 'action' => 'watch', 'token' => $token )
                );