X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialExport.php;h=8e6c446238593dcf549f2dbda6a42d4ca50ad038;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hp=f5e9e49b6985da8f43e525ac2ec7cfd9efdccfe9;hpb=2c8f7978df47f338ee6e245e3efba6175ba425e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index f5e9e49b69..4b5dedf781 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -23,7 +23,7 @@ * @ingroup SpecialPage */ -use Mediawiki\MediaWikiServices; +use MediaWiki\MediaWikiServices; /** * A special page that allows users to export pages in a XML file @@ -238,7 +238,7 @@ class SpecialExport extends SpecialPage { $formDescriptor += [ 'textarea' => [ - 'class' => 'HTMLTextAreaField', + 'class' => HTMLTextAreaField::class, 'name' => 'pages', 'label-message' => 'export-manual', 'nodata' => true, @@ -288,7 +288,7 @@ class SpecialExport extends SpecialPage { $formDescriptor += [ 'wpDownload' => [ 'type' => 'check', - 'name' =>'wpDownload', + 'name' => 'wpDownload', 'id' => 'wpDownload', 'default' => $request->wasPosted() ? $request->getCheck( 'wpDownload' ) : true, 'label-message' => 'export-download', @@ -330,7 +330,6 @@ class SpecialExport extends SpecialPage { * @param bool $exportall Whether to export everything */ private function doExport( $page, $history, $list_authors, $exportall ) { - // If we are grabbing everything, enable full history and ignore the rest if ( $exportall ) { $history = WikiExporter::FULL; @@ -534,9 +533,7 @@ class SpecialExport extends SpecialPage { * @return array */ private function getPageLinks( $inputPages, $pageSet, $depth ) { - // @codingStandardsIgnoreStart Squiz.WhiteSpace.SemicolonSpacing.Incorrect for ( ; $depth > 0; --$depth ) { - // @codingStandardsIgnoreEnd $pageSet = $this->getLinks( $inputPages, $pageSet, 'pagelinks', [ 'namespace' => 'pl_namespace', 'title' => 'pl_title' ],