Last modified: 2007-06-29 20:23:19 UTC
but no help page.
Same output for action=help&version&format=json
Strange. format=jsonfm does work. I'll look into this.
This bug appears to occur for *all* non-fm formats.
Created attachment 3837 [details]
Outputs help message in non-fm formats if action=help is explicitly set
ApiMain.php, lines 213-215:
// Only print the help message when this is for the developer, not runtime
ApiResult :: setContent($errMessage, $this->makeHelpMsg());
It appears this is intentional behavior. I've attached a patch that detects whether the caller explicitly asked for help through action=help, and outputs the help message if that is the case.
Hmm, this behaviour was added in revision 22500, Mon May 28 06:59:19 2007 UTC - makes sense not to include the help page on every error in bot mode. Sorry, I had missed that change.
(In reply to comment #4)
> makes sense not to include the help page on every error in bot mode.
Concur. But when specifically asked for, the help message should be printed.
Fixed in r23566