X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPagesWithProp.php;h=e68eb5670e5520b7b082fd951cbc742c2e1f4fcd;hb=90adb4879df6b8b31b3b619d13911a365891ee74;hp=0132fc3ed0e2b46a6897c7f3fde98774156a4e8b;hpb=e439cfb1b1dd71417162e23174554e1148707bd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPagesWithProp.php b/includes/api/ApiQueryPagesWithProp.php index 0132fc3ed0..e68eb5670e 100644 --- a/includes/api/ApiQueryPagesWithProp.php +++ b/includes/api/ApiQueryPagesWithProp.php @@ -92,7 +92,8 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { $count = 0; foreach ( $this->select( __METHOD__ ) as $row ) { if ( ++$count > $limit ) { - // We've reached the one extra which shows that there are additional pages to be had. Stop here... + // We've reached the one extra which shows that there are + // additional pages to be had. Stop here... $this->setContinueEnumParameter( 'continue', $row->page_id ); break; } @@ -133,7 +134,7 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { 'prop' => array( ApiBase::PARAM_DFLT => 'ids|title', ApiBase::PARAM_ISMULTI => true, - ApiBase::PARAM_TYPE => array ( + ApiBase::PARAM_TYPE => array( 'ids', 'title', 'value', @@ -178,8 +179,10 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { public function getExamples() { return array( - 'api.php?action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value' => 'Get first 10 pages using {{DISPLAYTITLE:}}', - 'api.php?action=query&generator=pageswithprop&gpwppropname=notoc&prop=info' => 'Get page info about first 10 pages using __NOTOC__', + 'api.php?action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value' + => 'Get first 10 pages using {{DISPLAYTITLE:}}', + 'api.php?action=query&generator=pageswithprop&gpwppropname=notoc&prop=info' + => 'Get page info about first 10 pages using __NOTOC__', ); }