https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113281
Revision: 113281
Author: maxsem
Date: 2012-03-07 19:43:41 +0000 (Wed, 07 Mar 2012)
Log Message:
-----------
renamed pqarameter section --> sections
Modified Paths:
--------------
trunk/extensions/MobileFrontend/api/ApiMobileView.php
Modified: trunk/extensions/MobileFrontend/api/ApiMobileView.php
===================================================================
--- trunk/extensions/MobileFrontend/api/ApiMobileView.php 2012-03-07
19:40:21 UTC (rev 113280)
+++ trunk/extensions/MobileFrontend/api/ApiMobileView.php 2012-03-07
19:43:41 UTC (rev 113281)
@@ -15,8 +15,8 @@
// Enough '*' keys in JSON!!!
$textElement = $this->getMain()->getPrinter()->getFormat() ==
'XML' ? '*' : 'text';
$params = $this->extractRequestParams();
- $requestedSections = isset( $params['section'] )
- ? $this->parseSections( $params['section'] )
+ $requestedSections = isset( $params['sections'] )
+ ? $this->parseSections( $params['sections'] )
: array();
$prop = array_flip( $params['prop'] );
$sectionProp = array_flip( $params['sectionprop'] );
@@ -125,7 +125,7 @@
'page' => array(
ApiBase::PARAM_REQUIRED => true,
),
- 'section' => null,
+ 'sections' => null,
'prop' => array(
ApiBase::PARAM_DFLT => 'text|sections',
ApiBase::PARAM_ISMULTI => true,
@@ -154,7 +154,7 @@
public function getParamDescription() {
return array(
'page' => 'Title of page to process',
- 'section' => 'Pipe-separated list of section numbers
for which to return text',
+ 'sections' => 'Pipe-separated list of section numbers
for which to return text',
'prop' => array(
'Which information to get',
' text - HTML of selected section(s)',
@@ -180,7 +180,7 @@
public function getExamples() {
return array(
- 'api.php?action=mobileview&page=Doom_metal§ion=0'
+ 'api.php?action=mobileview&page=Doom_metal§ions=0'
);
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs