From: Roan Kattouw Date: Tue, 16 Aug 2011 12:46:15 +0000 (+0000) Subject: Followup r90041: keep naming of watch and unwatch calls consistent X-Git-Tag: 1.31.0-rc.0~28236 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=c004e4ba8ce757dae09693292c205e5148d01c20;p=lhc%2Fweb%2Fwiklou.git Followup r90041: keep naming of watch and unwatch calls consistent --- diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index e3bd57fa15..96bf5339cf 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -59,11 +59,11 @@ class ApiWatch extends ApiBase { if ( $params['unwatch'] ) { $res['unwatched'] = ''; $res['message'] = wfMsgExt( 'removedwatchtext', array( 'parse' ), $title->getPrefixedText() ); - $success = WatchAction::doUnwatch( $title, $wgUser ); + $success = UnwatchAction::doUnwatch( $title, $wgUser ); } else { $res['watched'] = ''; $res['message'] = wfMsgExt( 'addedwatchtext', array( 'parse' ), $title->getPrefixedText() ); - $success = UnwatchAction::doWatch( $title, $wgUser ); + $success = WatchAction::doWatch( $title, $wgUser ); } if ( !$success ) { $this->dieUsageMsg( 'hookaborted' );