| @@ 225-235 (lines=11) @@ | ||
| 222 | ]; |
|
| 223 | } |
|
| 224 | ||
| 225 | if ( $config->get( 'ExportAllowAll' ) ) { |
|
| 226 | $formDescriptor += [ |
|
| 227 | 'exportall' => [ |
|
| 228 | 'type' => 'check', |
|
| 229 | 'label-message' => 'exportall', |
|
| 230 | 'name' => 'exportall', |
|
| 231 | 'id' => 'exportall', |
|
| 232 | 'default' => $request->wasPosted() ? $request->getCheck( 'exportall' ) : false, |
|
| 233 | ], |
|
| 234 | ]; |
|
| 235 | } |
|
| 236 | ||
| 237 | $formDescriptor += [ |
|
| 238 | 'textarea' => [ |
|
| @@ 249-261 (lines=13) @@ | ||
| 246 | ], |
|
| 247 | ]; |
|
| 248 | ||
| 249 | if ( $config->get( 'ExportAllowHistory' ) ) { |
|
| 250 | $formDescriptor += [ |
|
| 251 | 'curonly' => [ |
|
| 252 | 'type' => 'check', |
|
| 253 | 'label-message' => 'exportcuronly', |
|
| 254 | 'name' => 'curonly', |
|
| 255 | 'id' => 'curonly', |
|
| 256 | 'default' => $request->wasPosted() ? $request->getCheck( 'curonly' ) : true, |
|
| 257 | ], |
|
| 258 | ]; |
|
| 259 | } else { |
|
| 260 | $out->addWikiMsg( 'exportnohistory' ); |
|
| 261 | } |
|
| 262 | ||
| 263 | $formDescriptor += [ |
|
| 264 | 'templates' => [ |
|
| @@ 296-306 (lines=11) @@ | ||
| 293 | ], |
|
| 294 | ]; |
|
| 295 | ||
| 296 | if ( $config->get( 'ExportAllowListContributors' ) ) { |
|
| 297 | $formDescriptor += [ |
|
| 298 | 'listauthors' => [ |
|
| 299 | 'type' => 'check', |
|
| 300 | 'label-message' => 'exportlistauthors', |
|
| 301 | 'default' => $request->wasPosted() ? $request->getCheck( 'listauthors' ) : false, |
|
| 302 | 'name' => 'listauthors', |
|
| 303 | 'id' => 'listauthors', |
|
| 304 | ], |
|
| 305 | ]; |
|
| 306 | } |
|
| 307 | ||
| 308 | $htmlForm = HTMLForm::factory( 'ooui', $formDescriptor, $this->getContext() ); |
|
| 309 | $htmlForm->setSubmitTextMsg( 'export-submit' ); |
|