Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -78,6 +78,7 @@ |
79 | 79 | if(!is_array($allowedParams))
|
80 | 80 | return $retval;
|
81 | 81 | $retval['parameters'] = array();
|
| 82 | + $paramDesc = $obj->getParamDescription();
|
82 | 83 | foreach($obj->getAllowedParams() as $n => $p)
|
83 | 84 | {
|
84 | 85 | $a = array('name' => $n);
|
— | — | @@ -111,6 +112,8 @@ |
112 | 113 | $a['highmax'] = $p[ApiBase::PARAM_MAX2];
|
113 | 114 | if(isset($p[ApiBase::PARAM_MIN]))
|
114 | 115 | $a['min'] = $p[ApiBase::PARAM_MIN];
|
| 116 | + if(isset($paramDesc[$n]))
|
| 117 | + $a['description'] = (is_array($paramDesc[$n]) ? implode("\n", $paramDesc[$n]) : $paramDesc[$n]);
|
115 | 118 | $retval['parameters'][] = $a;
|
116 | 119 | }
|
117 | 120 | $result->setIndexedTagName($retval['parameters'], 'param');
|