r50425 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50424‎ | r50425 | r50426 >
Date:09:52, 10 May 2009
Author:catrope
Status:ok
Tags:
Comment:
API: (bug 18749) Add generator flag to action=paraminfo output. Also fixes an internal error in r50367
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiParamInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParamInfo.php
@@ -94,7 +94,7 @@
9595 $result = $this->getResult();
9696 $retval['classname'] = get_class($obj);
9797 $retval['description'] = implode("\n", (array)$obj->getDescription());
98 - $retval['version'] = $obj->getVersion();
 98+ $retval['version'] = implode("\n", (array)$obj->getVersion());
9999 $retval['prefix'] = $obj->getModulePrefix();
100100 if($obj->isReadMode())
101101 $retval['readrights'] = '';
@@ -102,6 +102,8 @@
103103 $retval['writerights'] = '';
104104 if($obj->mustBePosted())
105105 $retval['mustbeposted'] = '';
 106+ if($obj instanceof ApiQueryGeneratorBase)
 107+ $retval['generator'] = '';
106108 $allowedParams = $obj->getFinalParams();
107109 if(!is_array($allowedParams))
108110 return $retval;
Index: trunk/phase3/RELEASE-NOTES
@@ -138,6 +138,7 @@
139139 * (bug 18731) Show correct SVN links for extension modules in api.php?version
140140 * (bug 18730) Add version information to action=paraminfo output
141141 * (bug 18743) Add ucprop=size to list=usercontribs
 142+* (bug 18749) Add generator flag to action=paraminfo output
142143
143144 === Languages updated in 1.16 ===
144145

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50367API: (bug 18730) Add version information to action=paraminfo outputcatrope13:00, 9 May 2009

Status & tagging log