From 7938936806bb6d94f8d41964f7798ee00a4463dd Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sun, 17 Jun 2007 08:25:16 +0000 Subject: [PATCH] API: Fixed regression bug 10274: generator=watchlist complains about gwlprop even if it's not set Thanks to Roan Kattouw --- includes/api/ApiQueryWatchlist.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index f61a769170..245c04a2df 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -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); -- 2.20.1