diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:15:42 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-17 09:44:51 +0100 |
commit | a1789ddde42033f1b05cc4929491214ee6e79383 (patch) | |
tree | 63615735c4ddffaaabf2428946bb26f90899f7bf /includes/api/ApiUndelete.php | |
parent | 9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff) |
Update to MediaWiki 1.26.0
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'] ); |