Index: trunk/phase3/includes/api/ApiEditPage.php |
— | — | @@ -202,7 +202,7 @@ |
203 | 203 | $reqArr['wpSection'] = ''; |
204 | 204 | } |
205 | 205 | |
206 | | - $watch = $this->getWatchlistValue( $params['watchlist'], $titleObj ) || $wgUser->getOption( 'watchcreations' ); |
| 206 | + $watch = $this->getWatchlistValue( $params['watchlist'], $titleObj ); |
207 | 207 | |
208 | 208 | // Deprecated parameters |
209 | 209 | if ( $params['watch'] ) { |
Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -551,11 +551,14 @@ |
552 | 552 | |
553 | 553 | case 'preferences': |
554 | 554 | global $wgUser; |
555 | | - if ( isset($titleObj) |
556 | | - && $titleObj->exists() |
557 | | - && $wgUser->getOption( 'watchdefault' ) |
558 | | - && !$titleObj->userIsWatching() ) { |
559 | | - return true; |
| 555 | + if ( isset($titleObj) && !$titleObj->userIsWatching() ) { |
| 556 | + if ( $titleObj->exists() ) { |
| 557 | + if ( $wgUser->getOption( 'watchdefault' ) ) { |
| 558 | + return true; |
| 559 | + } |
| 560 | + } elseif ( $wgUser->getOption( 'watchcreations' ) ) { |
| 561 | + return true; |
| 562 | + } |
560 | 563 | } |
561 | 564 | return null; |
562 | 565 | |
Index: trunk/phase3/includes/api/ApiUpload.php |
— | — | @@ -248,7 +248,7 @@ |
249 | 249 | } |
250 | 250 | |
251 | 251 | $file = $this->mUpload->getLocalFile(); |
252 | | - $watch = $this->getWatchlistValue( $params['watchlist'], $file->getTitle() ) || $wgUser->getOption( 'watchcreations' ); |
| 252 | + $watch = $this->getWatchlistValue( $params['watchlist'], $file->getTitle() ); |
253 | 253 | |
254 | 254 | // Deprecated parameters |
255 | 255 | if ( $this->mParams['watch'] ) { |