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
Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiPurge.php
diff --git
a/includes/api/ApiPurge.php
b/includes/api/ApiPurge.php
index
8bbd88d
..
324d030
100644
(file)
--- a/
includes/api/ApiPurge.php
+++ b/
includes/api/ApiPurge.php
@@
-39,8
+39,7
@@
class ApiPurge extends ApiBase {
public function execute() {
$main = $this->getMain();
if ( !$main->isInternalMode() && !$main->getRequest()->wasPosted() ) {
public function execute() {
$main = $this->getMain();
if ( !$main->isInternalMode() && !$main->getRequest()->wasPosted() ) {
- $this->logFeatureUsage( 'purge-via-GET' );
- $this->setWarning( 'Use of action=purge via GET is deprecated. Use POST instead.' );
+ $this->addDeprecation( 'apiwarn-deprecation-purge-get', 'purge-via-GET' );
}
$params = $this->extractRequestParams();
}
$params = $this->extractRequestParams();
@@
-69,8
+68,7
@@
class ApiPurge extends ApiBase {
$page->doPurge( $flags );
$r['purged'] = true;
} else {
$page->doPurge( $flags );
$r['purged'] = true;
} else {
- $error = $this->parseMsg( [ 'actionthrottledtext' ] );
- $this->setWarning( $error['info'] );
+ $this->addWarning( 'apierror-ratelimited' );
}
if ( $forceLinkUpdate || $forceRecursiveLinkUpdate ) {
}
if ( $forceLinkUpdate || $forceRecursiveLinkUpdate ) {
@@
-114,8
+112,7
@@
class ApiPurge extends ApiBase {
}
}
} else {
}
}
} else {
- $error = $this->parseMsg( [ 'actionthrottledtext' ] );
- $this->setWarning( $error['info'] );
+ $this->addWarning( 'apierror-ratelimited' );
$forceLinkUpdate = false;
}
}
$forceLinkUpdate = false;
}
}