Do not allow a user to delete a page they can't edit
[lhc/web/wiklou.git] / includes / api / ApiPatrol.php
index 46bd94e..9690952 100644 (file)
@@ -98,33 +98,8 @@ class ApiPatrol extends ApiBase {
                );
        }
 
-       public function getResultProperties() {
-               return array(
-                       '' => array(
-                               'rcid' => 'integer',
-                               'ns' => 'namespace',
-                               'title' => 'string'
-                       )
-               );
-       }
-
        public function getDescription() {
-               return 'Patrol a page or revision';
-       }
-
-       public function getPossibleErrors() {
-               return array_merge(
-                       parent::getPossibleErrors(),
-                       parent::getRequireOnlyOneParameterErrorMessages( array( 'rcid', 'revid' ) ),
-                       array(
-                               array( 'nosuchrcid', 'rcid' ),
-                               array( 'nosuchrevid', 'revid' ),
-                               array(
-                                       'code' => 'notpatrollable',
-                                       'info' => "The revision can't be patrolled as it's too old"
-                               )
-                       )
-               );
+               return 'Patrol a page or revision.';
        }
 
        public function needsToken() {