Changed the format to lowercase in help message
authorPetr Onderka <gsvick@gmail.com>
Mon, 30 Apr 2012 15:52:27 +0000 (17:52 +0200)
committerPetr Onderka <gsvick@gmail.com>
Mon, 30 Apr 2012 15:52:27 +0000 (17:52 +0200)
The help message that appears at the top of pretty-printed
API results suggested to use format in uppercase (e.g. format=XML).
That wouldn't work, because format names are lowercase.

This change corrects the help message so that it correctly uses
lowercase (e.g. format=xml).

Change-Id: I94275879b60c42bde607eb896aa79433dfabb34c

includes/api/ApiFormatBase.php

index 17e9225..7dfdffc 100644 (file)
@@ -165,7 +165,7 @@ abstract class ApiFormatBase extends ApiBase {
 You are looking at the HTML representation of the <?php echo( $this->mFormat ); ?> format.<br />
 HTML is good for debugging, but is unsuitable for application use.<br />
 Specify the format parameter to change the output format.<br />
-To see the non HTML representation of the <?php echo( $this->mFormat ); ?> format, set format=<?php echo( $this->mFormat ); ?>.<br />
+To see the non HTML representation of the <?php echo( $this->mFormat ); ?> format, set format=<?php echo( strtolower( $this->mFormat ) ); ?>.<br />
 See the <a href='https://www.mediawiki.org/wiki/API'>complete documentation</a>, or
 <a href='<?php echo( $script ); ?>'>API help</a> for more information.
 </small>