r94629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94628‎ | r94629 | r94630 >
Date:12:46, 16 August 2011
Author:catrope
Status:ok
Tags:
Comment:
Followup r90041: keep naming of watch and unwatch calls consistent
Modified paths:
  • /trunk/phase3/includes/api/ApiWatch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiWatch.php
@@ -59,11 +59,11 @@
6060 if ( $params['unwatch'] ) {
6161 $res['unwatched'] = '';
6262 $res['message'] = wfMsgExt( 'removedwatchtext', array( 'parse' ), $title->getPrefixedText() );
63 - $success = WatchAction::doUnwatch( $title, $wgUser );
 63+ $success = UnwatchAction::doUnwatch( $title, $wgUser );
6464 } else {
6565 $res['watched'] = '';
6666 $res['message'] = wfMsgExt( 'addedwatchtext', array( 'parse' ), $title->getPrefixedText() );
67 - $success = UnwatchAction::doWatch( $title, $wgUser );
 67+ $success = WatchAction::doWatch( $title, $wgUser );
6868 }
6969 if ( !$success ) {
7070 $this->dieUsageMsg( 'hookaborted' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90041FU r89545: change broke api watching by switching watch and unwatch around....nikerabbit13:10, 14 June 2011

Status & tagging log