aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryAllpages.php
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2010-02-13 00:48:31 +0000
committerSam Reed <reedy@users.mediawiki.org>2010-02-13 00:48:31 +0000
commit1f9a7d791c93f9581b46c5ab299a496cf8ba84a5 (patch)
tree0c8ce9ab5f7ed34b2172edbd48c6552a0b2d84eb /includes/api/ApiQueryAllpages.php
parent2081a0693fdad9f99e0cb17c94edf0cddbc353a6 (diff)
downloadmediawikicore-1f9a7d791c93f9581b46c5ab299a496cf8ba84a5.tar.gz
mediawikicore-1f9a7d791c93f9581b46c5ab299a496cf8ba84a5.zip
Implement 9 modules dieUsage errors
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62406
Diffstat (limited to 'includes/api/ApiQueryAllpages.php')
-rw-r--r--includes/api/ApiQueryAllpages.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php
index 42055b0e4258..a8573d828b67 100644
--- a/includes/api/ApiQueryAllpages.php
+++ b/includes/api/ApiQueryAllpages.php
@@ -260,6 +260,13 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase {
public function getDescription() {
return 'Enumerate all pages sequentially in a given namespace';
}
+
+ public function getPossibleErrors() {
+ return array_merge( parent::getPossibleErrors(), array(
+ array( 'code' => 'params', 'info' => 'Use "gapfilterredir=nonredirects" option instead of "redirects" when using allpages as a generator' ),
+ array( 'code' => 'params', 'info' => 'prlevel may not be used without prtype' ),
+ ) );
+ }
protected function getExamples() {
return array (