From aab9eaa38a3f211bf3a29ee8b3936f2ecd503e5c Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 27 Mar 2008 16:31:52 +0000 Subject: [PATCH] API: Adding info field to error message --- includes/api/ApiQueryRecentChanges.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index d5d76c41e0..eb0c23a078 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -132,7 +132,7 @@ class ApiQueryRecentChanges extends ApiQueryBase { global $wgUser; if($this->fld_patrolled && !$wgUser->isAllowed('patrol')) - $this->dieUsage("You need the patrol right to request the patrolled flag"); + $this->dieUsage("You need the patrol right to request the patrolled flag", 'permissiondenied'); /* Add fields to our query if they are specified as a needed parameter. */ $this->addFieldsIf('rc_id', $this->fld_ids); -- 2.20.1