From: Roan Kattouw Date: Wed, 23 Jan 2008 17:28:45 +0000 (+0000) Subject: API: Adding module prefix information to action=paraminfo X-Git-Tag: 1.31.0-rc.0~49830 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=c4e5236096d411b1ace54344253066047b18bf41;p=lhc%2Fweb%2Fwiklou.git API: Adding module prefix information to action=paraminfo --- diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index eb89ec5123..2c9ef2ee93 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -63,7 +63,7 @@ class ApiParamInfo extends ApiBase { $qmods[$qm] = array('missing' => ''); continue; } - $obj = new $className($this, 'query'); + $obj = new $className($this, $qm); $r['querymodules'][$qm] = $this->getClassInfo($obj); } $result->addValue( null, $this->getModuleName(), $r ); @@ -74,6 +74,7 @@ class ApiParamInfo extends ApiBase { $result = $this->getResult(); $retval['classname'] = get_class($obj); $retval['description'] = (is_array($obj->getDescription()) ? implode("\n", $obj->getDescription()) : $obj->getDescription()); + $retval['prefix'] = $obj->getModulePrefix(); $allowedParams = $obj->getAllowedParams(); if(!is_array($allowedParams)) return $retval;