API: Fixed regression bug 10274: generator=watchlist complains about gwlprop even...
authorYuri Astrakhan <yurik@users.mediawiki.org>
Sun, 17 Jun 2007 08:25:16 +0000 (08:25 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Sun, 17 Jun 2007 08:25:16 +0000 (08:25 +0000)
Thanks to Roan Kattouw

includes/api/ApiQueryWatchlist.php

index f61a769..245c04a 100644 (file)
@@ -62,9 +62,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                $allrev = $start = $end = $namespace = $dir = $limit = $prop = null;
                extract($this->extractRequestParams());
 
-               if (!is_null($prop)) {
-                       if (!is_null($resultPageSet))
-                               $this->dieUsage($this->encodeParamName('prop') . ' parameter may not be used in a generator', 'params');
+               if (!is_null($prop) && is_null($resultPageSet)) {
 
                        $prop = array_flip($prop);