* (bug 16672) Include canonical namespace name in
meta=siteinfo&siprop=namespaces.
* (bug 16726) siprop=namespacealiases should also list localized aliases
+* (bug 16730) Added apprfiltercascade parameter to list=allpages to filter
+ cascade-protected pages
=== Languages updated in 1.14 ===
$prlevel = array_diff($params['prlevel'], array('', '*'));
if (!empty($prlevel))
$this->addWhereFld('pr_level', $prlevel);
+ if ($params['prfiltercascade'] == 'cascading')
+ $this->addWhereFld('pr_cascade', 1);
+ if ($params['prfiltercascade'] == 'noncascading')
+ $this->addWhereFld('pr_cascade', 0);
$this->addOption('DISTINCT');
ApiBase :: PARAM_TYPE => $wgRestrictionLevels,
ApiBase :: PARAM_ISMULTI => true
),
+ 'prfiltercascade' => array (
+ ApiBase :: PARAM_DFLT => 'all',
+ ApiBase :: PARAM_TYPE => array (
+ 'cascading',
+ 'noncascading',
+ 'all'
+ ),
+ ),
'limit' => array (
ApiBase :: PARAM_DFLT => 10,
ApiBase :: PARAM_TYPE => 'limit',
'maxsize' => 'Limit to pages with at most this many bytes',
'prtype' => 'Limit to protected pages only',
'prlevel' => 'The protection level (must be used with apprtype= parameter)',
+ 'prfiltercascade' => 'Filter protections based on cascadingness (ignored when apprtype isn\'t set)',
'filterlanglinks' => 'Filter based on whether a page has langlinks',
'limit' => 'How many total pages to return.'
);