Index: trunk/phase3/includes/api/ApiMove.php |
— | — | @@ -122,12 +122,11 @@ |
123 | 123 | } |
124 | 124 | } |
125 | 125 | |
126 | | - $watch = $params['watchlist']; |
127 | | - if ( $wgUser->getOption( 'watchmoves' ) ) { |
| 126 | + $watch = "preferences"; |
| 127 | + if ( isset( $params['watchlist'] ) ) { |
| 128 | + $watch = $params['watchlist']; |
| 129 | + } elseif ( $wgUser->getOption( 'watchmoves' ) || $params['watch'] ) { |
128 | 130 | $watch = 'watch'; |
129 | | - } |
130 | | - if ( $params['watch'] ) { |
131 | | - $watch = 'watch'; |
132 | 131 | } elseif ( $params['unwatch'] ) { |
133 | 132 | $watch = 'unwatch'; |
134 | 133 | } |