r23043 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23042‎ | r23043 | r23044 >
Date:08:25, 17 June 2007
Author:yurik
Status:old
Tags:
Comment:
API: Fixed regression bug 10274: generator=watchlist complains about gwlprop even if it's not set
Thanks to Roan Kattouw
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryWatchlist.php
@@ -62,9 +62,7 @@
6363 $allrev = $start = $end = $namespace = $dir = $limit = $prop = null;
6464 extract($this->extractRequestParams());
6565
66 - if (!is_null($prop)) {
67 - if (!is_null($resultPageSet))
68 - $this->dieUsage($this->encodeParamName('prop') . ' parameter may not be used in a generator', 'params');
 66+ if (!is_null($prop) && is_null($resultPageSet)) {
6967
7068 $prop = array_flip($prop);
7169

Follow-up revisions

RevisionCommit summaryAuthorDate
r23050Merged revisions 23038-23049 via svnmerge from...david00:01, 18 June 2007

Status & tagging log