"apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype...
authorSam Reed <reedy@users.mediawiki.org>
Wed, 6 Jan 2010 23:21:46 +0000 (23:21 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 6 Jan 2010 23:21:46 +0000 (23:21 +0000)
                   One value: cascading, noncascading, all"

So it can't be both. Change 2nd if to else if

includes/api/ApiQueryAllpages.php

index bdae22e..c8fed05 100644 (file)
@@ -101,7 +101,7 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase {
                                $this->addWhereFld('pr_level', $prlevel);
                        if ($params['prfiltercascade'] == 'cascading')
                                $this->addWhereFld('pr_cascade', 1);
-                       if ($params['prfiltercascade'] == 'noncascading')
+                       else if ($params['prfiltercascade'] == 'noncascading')
                                $this->addWhereFld('pr_cascade', 0);
 
                        $this->addOption('DISTINCT');