* (bug 27790) add query type for querymodules to action=paraminfo
authorSam Reed <reedy@users.mediawiki.org>
Tue, 10 May 2011 23:46:27 +0000 (23:46 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 10 May 2011 23:46:27 +0000 (23:46 +0000)
RELEASE-NOTES-1.19
includes/api/ApiParamInfo.php

index 50a0caa..c6b711a 100644 (file)
@@ -34,6 +34,7 @@ used in Tiff files.
   the user a page named [[:]] already exists.
 
 === API changes in 1.19 ===
+* (bug 27790) add query type for querymodules to action=paraminfo
 
 === Languages updated in 1.19 ===
 
index 1f8b383..5d1b572 100644 (file)
@@ -70,6 +70,7 @@ class ApiParamInfo extends ApiBase {
                                $obj = new $qmodArr[$qm]( $this, $qm );
                                $a = $this->getClassInfo( $obj );
                                $a['name'] = $qm;
+                               $a['querytype'] = $queryObj->getModuleType( $qm );
                                $r['querymodules'][] = $a;
                        }
                        $result->setIndexedTagName( $r['querymodules'], 'module' );