{\r
if(!isset($modArr[$m]))\r
{\r
- $r['modules'][$m] = array('missing' => '');\r
+ $r['modules'][] = array('name' => $m, 'missing' => '');\r
continue;\r
}\r
$obj = new $modArr[$m]($this->getMain(), $m);\r
- $r['modules'][$m] = $this->getClassInfo($obj); \r
+ $a = $this->getClassInfo($obj);\r
+ $a['name'] = $m;\r
+ $r['modules'][] = $a; \r
}\r
+ $result->setIndexedTagName($r['modules'], 'module');\r
}\r
if(is_array($params['querymodules']))\r
{\r
{\r
if(!isset($qmodArr[$qm]))\r
{\r
- $r['querymodules'][$qm] = array('missing' => '');\r
+ $r['querymodules'][] = array('name' => $qm, 'missing' => '');\r
continue;\r
}\r
$obj = new $qmodArr[$qm]($this, $qm);\r
- $r['querymodules'][$qm] = $this->getClassInfo($obj);\r
+ $a = $this->getClassInfo($obj);\r
+ $a['name'] = $qm;\r
+ $r['querymodules'][] = $a;\r
}\r
+ $result->setIndexedTagName($r['querymodules'], 'module');\r
}\r
$result->addValue(null, $this->getModuleName(), $r);\r
}\r