Followup to bryans comment for r62328
authorSam Reed <reedy@users.mediawiki.org>
Thu, 11 Feb 2010 21:53:57 +0000 (21:53 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 11 Feb 2010 21:53:57 +0000 (21:53 +0000)
Rename possibleErrors to getPossibleErrors

includes/api/ApiBase.php
includes/api/ApiBlock.php

index d42aadd..cbeeae8 100644 (file)
@@ -968,7 +968,7 @@ abstract class ApiBase {
        /**
        * Returns a list of all possible errors returned by the module
        */
-       public function possibleErrors() {
+       public function getPossibleErrors() {
                $ret = array( array( 'readrequired' ) );
                
                if ( $this->mustBePosted() ) {
index 962f3b5..d8121b5 100644 (file)
@@ -158,8 +158,8 @@ class ApiBlock extends ApiBase {
                );
        }
        
-       public function possibleErrors() {
-               return array_merge( parent::possibleErrors(), array(
+       public function getPossibleErrors() {
+               return array_merge( parent::getPossibleErrors(), array(
                        array( 'missingparam', 'user' ),
                        array( 'missingparam', 'token' ),
                        array( 'sessionfailure' ),