(bug 24016) API: Handle parameters specified in simple string syntax ( 'paramname' => 'defaultval' ) correctly when outputting help. Patch by Brad Jorsch.
This commit is contained in:
parent
bd2773b3cd
commit
fe66ef26cd
1 changed files with 6 additions and 0 deletions
|
|
@ -294,6 +294,12 @@ abstract class ApiBase {
|
|||
$desc = implode( $paramPrefix, $desc );
|
||||
}
|
||||
|
||||
if ( !is_array( $paramSettings ) ) {
|
||||
$paramSettings = array(
|
||||
self::PARAM_DFLT => $paramSettings,
|
||||
);
|
||||
}
|
||||
|
||||
$deprecated = isset( $paramSettings[self::PARAM_DEPRECATED] ) ?
|
||||
$paramSettings[self::PARAM_DEPRECATED] : false;
|
||||
if ( $deprecated ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue