r50320 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50319‎ | r50320 | r50321 >
Date:20:09, 7 May 2009
Author:demon
Status:ok
Tags:
Comment:
(bug 18710) Fixed internal error with empty parameter in ApiParamInfo
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
@@ -46,6 +46,7 @@
4747 if(is_array($params['modules']))
4848 {
4949 $modArr = $this->getMain()->getModules();
 50+ $r['modules'] = array();
5051 foreach($params['modules'] as $m)
5152 {
5253 if(!isset($modArr[$m]))
@@ -63,6 +64,7 @@
6465 if(is_array($params['querymodules']))
6566 {
6667 $qmodArr = $queryObj->getModules();
 68+ $r['querymodules'] = array();
6769 foreach($params['querymodules'] as $qm)
6870 {
6971 if(!isset($qmodArr[$qm]))
Index: trunk/phase3/RELEASE-NOTES
@@ -133,6 +133,7 @@
134134 * Added PHP and database version to meta=siteinfo output
135135 * (bug 18533) Add readonly message to meta=siteinfo output
136136 * (bug 18518) Add clprop=hidden to prop=categories
 137+* (bug 18710) Fixed internal error with empty parameter in ApiParamInfo
137138
138139 === Languages updated in 1.16 ===
139140

Status & tagging log