dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test ApiMove
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiMove.php
diff --git
a/includes/api/ApiMove.php
b/includes/api/ApiMove.php
index
2814564
..
f6b6b35
100644
(file)
--- a/
includes/api/ApiMove.php
+++ b/
includes/api/ApiMove.php
@@
-99,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.
// 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;
$r['redirectcreated'] = $fromTitle->exists();
$r['moveoverredirect'] = $toTitleExists;
@@
-152,10
+151,6
@@
class ApiMove extends ApiBase {
$watch = 'preferences';
if ( isset( $params['watchlist'] ) ) {
$watch = $params['watchlist'];
$watch = 'preferences';
if ( isset( $params['watchlist'] ) ) {
$watch = $params['watchlist'];
- } elseif ( $params['watch'] ) {
- $watch = 'watch';
- } elseif ( $params['unwatch'] ) {
- $watch = 'unwatch';
}
// Watch pages
}
// Watch pages
@@
-250,14
+245,6
@@
class ApiMove extends ApiBase {
'movetalk' => false,
'movesubpages' => false,
'noredirect' => false,
'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 => [
'watchlist' => [
ApiBase::PARAM_DFLT => 'preferences',
ApiBase::PARAM_TYPE => [