API: Adding info field to error message
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 27 Mar 2008 16:31:52 +0000 (16:31 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 27 Mar 2008 16:31:52 +0000 (16:31 +0000)
includes/api/ApiQueryRecentChanges.php

index d5d76c4..eb0c23a 100644 (file)
@@ -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);