Followup to r64962: Fixed watchlist parameter in API. User options watchdeletions...
[lhc/web/wiklou.git] / includes / api / ApiMove.php
index e59855b..8aed671 100644 (file)
@@ -125,15 +125,15 @@ class ApiMove extends ApiBase {
                $watch = "preferences";
                if ( isset( $params['watchlist'] ) ) {
                        $watch = $params['watchlist'];
-               } elseif ( $wgUser->getOption( 'watchmoves' ) || $params['watch'] ) {
+               } elseif ( $params['watch'] ) {
                        $watch = 'watch';
                } elseif ( $params['unwatch'] ) {
                        $watch = 'unwatch';
                }
 
                // Watch pages
-               $this->setWatch( $watch, $fromTitle );
-               $this->setWatch( $watch, $toTitle );
+               $this->setWatch( $watch, $fromTitle, 'watchmoves' );
+               $this->setWatch( $watch, $toTitle, 'watchmoves' );
 
                $this->getResult()->addValue( null, $this->getModuleName(), $r );
        }