Followup r92396 rename method, fix boolean comparison that was supposed to be inverte...
authorSam Reed <reedy@users.mediawiki.org>
Sun, 17 Jul 2011 16:23:29 +0000 (16:23 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 17 Jul 2011 16:23:29 +0000 (16:23 +0000)
includes/api/ApiBase.php
includes/api/ApiLogin.php
includes/api/ApiLogout.php
includes/api/ApiParamInfo.php
includes/api/ApiQuery.php

index 360efda..ff005ee 100644 (file)
@@ -268,7 +268,7 @@ abstract class ApiBase {
                        }
 
                        $msg .= $this->makeHelpArrayToString( $lnPrfx, "Example", $this->getExamples() );
-                       $msg .= $this->makeHelpArrayToString( $lnPrfx, "Help page", $this->getHelpUrl() );
+                       $msg .= $this->makeHelpArrayToString( $lnPrfx, "Help page", $this->getHelpUrls() );
 
                        if ( $this->getMain()->getShowVersions() ) {
                                $versions = $this->getVersion();
@@ -298,7 +298,7 @@ abstract class ApiBase {
         * @return string
         */
        protected function makeHelpArrayToString( $prefix, $title, $input ) {
-               if ( $input !== false ) {
+               if ( $input === false ) {
                        return '';
                }
                if ( !is_array( $input ) ) {
@@ -1311,7 +1311,7 @@ abstract class ApiBase {
        /**
         * @return false|string|array Returns a false if the module has no help url, else returns a (array of) string
         */
-       public function getHelpUrl() {
+       public function getHelpUrls() {
                return false;
        }
 
index cf0666c..8e68042 100644 (file)
@@ -212,7 +212,7 @@ class ApiLogin extends ApiBase {
                );
        }
 
-       public function getHelpUrl() {
+       public function getHelpUrls() {
                return 'http://www.mediawiki.org/wiki/API:Login';
        }
 
index 9921c0d..dd94b9b 100644 (file)
@@ -73,7 +73,7 @@ class ApiLogout extends ApiBase {
                );
        }
 
-       public function getHelpUrl() {
+       public function getHelpUrls() {
                return 'http://www.mediawiki.org/wiki/API:Logout';
        }
 
index 323c36f..989e55b 100644 (file)
@@ -94,7 +94,7 @@ class ApiParamInfo extends ApiBase {
                $retval['classname'] = get_class( $obj );
                $retval['description'] = implode( "\n", (array)$obj->getDescription() );
                $retval['examples'] = implode( "\n", (array)$obj->getExamples() );
-               $retval['helpurl'] = implode( "\n", (array)$obj->getHelpUrl() );
+               $retval['helpurl'] = implode( "\n", (array)$obj->getHelpUrls() );
                $retval['version'] = implode( "\n", (array)$obj->getVersion() );
                $retval['prefix'] = $obj->getModulePrefix();
 
@@ -239,7 +239,7 @@ class ApiParamInfo extends ApiBase {
                );
        }
 
-       public function getHelpUrl() {
+       public function getHelpUrls() {
                return 'http://www.mediawiki.org/wiki/API:Parameter_information';
        }
 
index 66b196b..61f1892 100644 (file)
@@ -702,7 +702,7 @@ class ApiQuery extends ApiBase {
                );
        }
 
-       public function getHelpUrl() {
+       public function getHelpUrls() {
                return array(
                        'http://www.mediawiki.org/wiki/API:Meta',
                        'http://www.mediawiki.org/wiki/API:Properties',