From c4e5236096d411b1ace54344253066047b18bf41 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 23 Jan 2008 17:28:45 +0000 Subject: [PATCH] API: Adding module prefix information to action=paraminfo --- includes/api/ApiParamInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1