diff options
Diffstat (limited to 'includes/api/ApiDelete.php')
-rw-r--r-- | includes/api/ApiDelete.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index d8b57182..bdf02bf1 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -39,6 +39,8 @@ class ApiDelete extends ApiBase { * result object. */ public function execute() { + $this->useTransactionalTimeLimit(); + $params = $this->extractRequestParams(); $pageObj = $this->getTitleOrPageId( $params, 'fromdbmaster' ); @@ -131,7 +133,7 @@ class ApiDelete extends ApiBase { $error = ''; // Luckily, Article.php provides a reusable delete function that does the hard work for us - return $page->doDeleteArticleReal( $reason, false, 0, true, $error ); + return $page->doDeleteArticleReal( $reason, false, 0, true, $error, $user ); } /** |