dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca2d0f
)
"apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype...
author
Sam Reed
<reedy@users.mediawiki.org>
Wed, 6 Jan 2010 23:21:46 +0000
(23:21 +0000)
committer
Sam 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
patch
|
blob
|
history
diff --git
a/includes/api/ApiQueryAllpages.php
b/includes/api/ApiQueryAllpages.php
index
bdae22e
..
c8fed05
100644
(file)
--- a/
includes/api/ApiQueryAllpages.php
+++ b/
includes/api/ApiQueryAllpages.php
@@
-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');