X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiMove.php;h=f6b6b35df2913210388d8cf023c9d2394ad55904;hb=8eb6cf585c5fb3d7dd5f014bac27518959512b98;hp=e7b280803e70475e933a22b8ea0dec76a809d5ed;hpb=f884ba1d5fd64d5449d141d48f690e15ee9f2ab0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index e7b280803e..f6b6b35df2 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -1,9 +1,5 @@ .@gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -103,7 +99,6 @@ class ApiMove extends ApiBase { // a redirect to the new title. This is not safe, but what we did before was // even worse: we just determined whether a redirect should have been created, // and reported that it was created if it should have, without any checks. - // Also note that isRedirect() is unreliable because of T39209. $r['redirectcreated'] = $fromTitle->exists(); $r['moveoverredirect'] = $toTitleExists; @@ -156,10 +151,6 @@ class ApiMove extends ApiBase { $watch = 'preferences'; if ( isset( $params['watchlist'] ) ) { $watch = $params['watchlist']; - } elseif ( $params['watch'] ) { - $watch = 'watch'; - } elseif ( $params['unwatch'] ) { - $watch = 'unwatch'; } // Watch pages @@ -254,14 +245,6 @@ class ApiMove extends ApiBase { 'movetalk' => false, 'movesubpages' => false, 'noredirect' => false, - 'watch' => [ - ApiBase::PARAM_DFLT => false, - ApiBase::PARAM_DEPRECATED => true, - ], - 'unwatch' => [ - ApiBase::PARAM_DFLT => false, - ApiBase::PARAM_DEPRECATED => true, - ], 'watchlist' => [ ApiBase::PARAM_DFLT => 'preferences', ApiBase::PARAM_TYPE => [