Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -49,12 +49,15 @@ |
50 | 50 | {
|
51 | 51 | if(!isset($modArr[$m]))
|
52 | 52 | {
|
53 | | - $r['modules'][$m] = array('missing' => '');
|
| 53 | + $r['modules'][] = array('name' => $m, 'missing' => '');
|
54 | 54 | continue;
|
55 | 55 | }
|
56 | 56 | $obj = new $modArr[$m]($this->getMain(), $m);
|
57 | | - $r['modules'][$m] = $this->getClassInfo($obj);
|
| 57 | + $a = $this->getClassInfo($obj);
|
| 58 | + $a['name'] = $m;
|
| 59 | + $r['modules'][] = $a;
|
58 | 60 | }
|
| 61 | + $result->setIndexedTagName($r['modules'], 'module');
|
59 | 62 | }
|
60 | 63 | if(is_array($params['querymodules']))
|
61 | 64 | {
|
— | — | @@ -64,12 +67,15 @@ |
65 | 68 | {
|
66 | 69 | if(!isset($qmodArr[$qm]))
|
67 | 70 | {
|
68 | | - $r['querymodules'][$qm] = array('missing' => '');
|
| 71 | + $r['querymodules'][] = array('name' => $qm, 'missing' => '');
|
69 | 72 | continue;
|
70 | 73 | }
|
71 | 74 | $obj = new $qmodArr[$qm]($this, $qm);
|
72 | | - $r['querymodules'][$qm] = $this->getClassInfo($obj);
|
| 75 | + $a = $this->getClassInfo($obj);
|
| 76 | + $a['name'] = $qm;
|
| 77 | + $r['querymodules'][] = $a;
|
73 | 78 | }
|
| 79 | + $result->setIndexedTagName($r['querymodules'], 'module');
|
74 | 80 | }
|
75 | 81 | $result->addValue(null, $this->getModuleName(), $r);
|
76 | 82 | }
|