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
Provide short URL to file description page in imageinfo API
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiUndelete.php
diff --git
a/includes/api/ApiUndelete.php
b/includes/api/ApiUndelete.php
index
c23e9ff
..
469fe7f
100644
(file)
--- a/
includes/api/ApiUndelete.php
+++ b/
includes/api/ApiUndelete.php
@@
-30,14
+30,16
@@
class ApiUndelete extends ApiBase {
public function execute() {
class ApiUndelete extends ApiBase {
public function execute() {
- $
params = $this->extractRequestParams
();
+ $
this->useTransactionalTimeLimit
();
- if ( !$this->getUser()->isAllowed( 'undelete' ) ) {
+ $params = $this->extractRequestParams();
+ $user = $this->getUser();
+ if ( !$user->isAllowed( 'undelete' ) ) {
$this->dieUsageMsg( 'permdenied-undelete' );
}
$this->dieUsageMsg( 'permdenied-undelete' );
}
- if ( $
this->getUser()
->isBlocked() ) {
- $this->die
UsageMsg( 'blockedtext'
);
+ if ( $
user
->isBlocked() ) {
+ $this->die
Blocked( $user->getBlock()
);
}
$titleObj = Title::newFromText( $params['title'] );
}
$titleObj = Title::newFromText( $params['title'] );