From c004e4ba8ce757dae09693292c205e5148d01c20 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 16 Aug 2011 12:46:15 +0000 Subject: [PATCH] Followup r90041: keep naming of watch and unwatch calls consistent --- includes/api/ApiWatch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ); -- 2.20.1