}
public function onSubmit( $data ) {
- self::doWatch( $this->getTitle(), $this->getUser() );
-
- return true;
+ return self::doWatch( $this->getTitle(), $this->getUser() );
}
protected function checkCanExecute( User $user ) {
* @param string $action Optionally override the action to 'watch'
* @return string Token
* @since 1.18
+ * @deprecated since 1.32 Use WatchAction::getWatchToken() with action 'unwatch' directly.
*/
public static function getUnwatchToken( Title $title, User $user, $action = 'unwatch' ) {
+ wfDeprecated( __METHOD__, '1.32' );
return self::getWatchToken( $title, $user, $action );
}