Index: trunk/phase3/includes/api/ApiWatch.php |
— | — | @@ -59,11 +59,11 @@ |
60 | 60 | if ( $params['unwatch'] ) { |
61 | 61 | $res['unwatched'] = ''; |
62 | 62 | $res['message'] = wfMsgExt( 'removedwatchtext', array( 'parse' ), $title->getPrefixedText() ); |
63 | | - $success = WatchAction::doUnwatch( $title, $wgUser ); |
| 63 | + $success = UnwatchAction::doUnwatch( $title, $wgUser ); |
64 | 64 | } else { |
65 | 65 | $res['watched'] = ''; |
66 | 66 | $res['message'] = wfMsgExt( 'addedwatchtext', array( 'parse' ), $title->getPrefixedText() ); |
67 | | - $success = UnwatchAction::doWatch( $title, $wgUser ); |
| 67 | + $success = WatchAction::doWatch( $title, $wgUser ); |
68 | 68 | } |
69 | 69 | if ( !$success ) { |
70 | 70 | $this->dieUsageMsg( 'hookaborted' ); |