Index: branches/REL1_19/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -281,6 +281,8 @@ |
282 | 282 | values is given as an array. |
283 | 283 | * (bug 32948) {{REVISIONID}} and related variables are no longer blank after |
284 | 284 | calling action=purge&forcelinkupdate. |
| 285 | +* (bug 34377) action=watch now parses messages using the correct title instead |
| 286 | + of "API". |
285 | 287 | |
286 | 288 | === Languages updated in 1.19 === |
287 | 289 | |
Index: branches/REL1_19/phase3/includes/api/ApiWatch.php |
— | — | @@ -52,11 +52,11 @@ |
53 | 53 | |
54 | 54 | if ( $params['unwatch'] ) { |
55 | 55 | $res['unwatched'] = ''; |
56 | | - $res['message'] = wfMsgExt( 'removedwatchtext', array( 'parse' ), $title->getPrefixedText() ); |
| 56 | + $res['message'] = $this->msg( 'removedwatchtext', $title->getPrefixedText() )->title( $title )->parseAsBlock(); |
57 | 57 | $success = UnwatchAction::doUnwatch( $title, $user ); |
58 | 58 | } else { |
59 | 59 | $res['watched'] = ''; |
60 | | - $res['message'] = wfMsgExt( 'addedwatchtext', array( 'parse' ), $title->getPrefixedText() ); |
| 60 | + $res['message'] = $this->msg( 'addedwatchtext', $title->getPrefixedText() )->title( $title )->parseAsBlock(); |
61 | 61 | $success = WatchAction::doWatch( $title, $user ); |
62 | 62 | } |
63 | 63 | if ( !$success ) { |