diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
commit | a2190ac74dd4d7080b12bab90e552d7aa81209ef (patch) | |
tree | 8b31f38de9882d18df54cf8d9e0de74167a094eb /includes/api/ApiUndelete.php | |
parent | 15e69f7b20b6596b9148030acce5b59993b95a45 (diff) | |
parent | 257401d8b2cf661adf36c84b0e3fd1cf85e33c22 (diff) |
Merge branch 'mw-1.26'
Diffstat (limited to 'includes/api/ApiUndelete.php')
-rw-r--r-- | includes/api/ApiUndelete.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index c23e9ff6..cd50ee65 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -30,6 +30,8 @@ class ApiUndelete extends ApiBase { public function execute() { + $this->useTransactionalTimeLimit(); + $params = $this->extractRequestParams(); if ( !$this->getUser()->isAllowed( 'undelete' ) ) { @@ -37,7 +39,12 @@ class ApiUndelete extends ApiBase { } if ( $this->getUser()->isBlocked() ) { - $this->dieUsageMsg( 'blockedtext' ); + $this->dieUsage( + 'You have been blocked from editing', + 'blocked', + 0, + array( 'blockinfo' => ApiQueryUserInfo::getBlockInfo( $this->getUser()->getBlock() ) ) + ); } $titleObj = Title::newFromText( $params['title'] ); |