Index: trunk/extensions/MobileFrontend/api/ApiMobileView.php |
— | — | @@ -15,8 +15,8 @@ |
16 | 16 | // Enough '*' keys in JSON!!! |
17 | 17 | $textElement = $this->getMain()->getPrinter()->getFormat() == 'XML' ? '*' : 'text'; |
18 | 18 | $params = $this->extractRequestParams(); |
19 | | - $requestedSections = isset( $params['section'] ) |
20 | | - ? $this->parseSections( $params['section'] ) |
| 19 | + $requestedSections = isset( $params['sections'] ) |
| 20 | + ? $this->parseSections( $params['sections'] ) |
21 | 21 | : array(); |
22 | 22 | $prop = array_flip( $params['prop'] ); |
23 | 23 | $sectionProp = array_flip( $params['sectionprop'] ); |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | 'page' => array( |
127 | 127 | ApiBase::PARAM_REQUIRED => true, |
128 | 128 | ), |
129 | | - 'section' => null, |
| 129 | + 'sections' => null, |
130 | 130 | 'prop' => array( |
131 | 131 | ApiBase::PARAM_DFLT => 'text|sections', |
132 | 132 | ApiBase::PARAM_ISMULTI => true, |
— | — | @@ -154,7 +154,7 @@ |
155 | 155 | public function getParamDescription() { |
156 | 156 | return array( |
157 | 157 | 'page' => 'Title of page to process', |
158 | | - 'section' => 'Pipe-separated list of section numbers for which to return text', |
| 158 | + 'sections' => 'Pipe-separated list of section numbers for which to return text', |
159 | 159 | 'prop' => array( |
160 | 160 | 'Which information to get', |
161 | 161 | ' text - HTML of selected section(s)', |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | |
182 | 182 | public function getExamples() { |
183 | 183 | return array( |
184 | | - 'api.php?action=mobileview&page=Doom_metal§ion=0' |
| 184 | + 'api.php?action=mobileview&page=Doom_metal§ions=0' |
185 | 185 | ); |
186 | 186 | } |
187 | 187 | |