From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/api/ApiQueryAllpages.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'includes/api/ApiQueryAllpages.php') diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index 4a216670..e003ee91 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -24,11 +24,6 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiQueryBase.php' ); -} - /** * Query module to enumerate all available pages. * @@ -312,16 +307,19 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( - 'Simple Use', - ' Show a list of pages starting at the letter "B"', - ' api.php?action=query&list=allpages&apfrom=B', - 'Using as Generator', - ' Show info about 4 pages starting at the letter "T"', - ' api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info', - ' Show content of first 2 non-redirect pages begining at "Re"', - ' api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content' + 'api.php?action=query&list=allpages&apfrom=B' => array( + 'Simple Use', + 'Show a list of pages starting at the letter "B"', + ), + 'api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info' => array( + 'Using as Generator', + 'Show info about 4 pages starting at the letter "T"', + ), + 'api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content' => array( + 'Show content of first 2 non-redirect pages begining at "Re"', + ) ); } -- cgit v1.2.3-54-g00ecf