* (bug 34377) action=watch now parses messages using the correct title instead of...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 13 Feb 2012 18:42:35 +0000 (18:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 13 Feb 2012 18:42:35 +0000 (18:42 +0000)
RELEASE-NOTES-1.19
includes/api/ApiWatch.php

index d6a3e61..d9b3cd4 100644 (file)
@@ -281,6 +281,8 @@ production.
   values is given as an array.
 * (bug 32948) {{REVISIONID}} and related variables are no longer blank after
   calling action=purge&forcelinkupdate.
+* (bug 34377) action=watch now parses messages using the correct title instead
+  of "API".
 
 === Languages updated in 1.19 ===
 
index 4b448d6..fa382b3 100644 (file)
@@ -52,11 +52,11 @@ class ApiWatch extends ApiBase {
 
                if ( $params['unwatch'] ) {
                        $res['unwatched'] = '';
-                       $res['message'] = wfMsgExt( 'removedwatchtext', array( 'parse' ), $title->getPrefixedText() );
+                       $res['message'] = $this->msg( 'removedwatchtext', $title->getPrefixedText() )->title( $title )->parseAsBlock();
                        $success = UnwatchAction::doUnwatch( $title, $user );
                } else {
                        $res['watched'] = '';
-                       $res['message'] = wfMsgExt( 'addedwatchtext', array( 'parse' ), $title->getPrefixedText() );
+                       $res['message'] = $this->msg( 'addedwatchtext', $title->getPrefixedText() )->title( $title )->parseAsBlock();
                        $success = WatchAction::doWatch( $title, $user );
                }
                if ( !$success ) {