SpecialExport: Add 'hide-if' to form definition
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 31 Jul 2016 14:35:59 +0000 (16:35 +0200)
committerJforrester <jforrester@wikimedia.org>
Mon, 22 Aug 2016 15:56:42 +0000 (15:56 +0000)
Change-Id: Ic03620849f863bc4e21347984f84c532c189c4ea

includes/specials/SpecialExport.php

index 3e66ab0..fe97739 100644 (file)
@@ -201,6 +201,7 @@ class SpecialExport extends SpecialPage {
                                'buttontype' => 'submit',
                                'buttonname' => 'addcat',
                                'buttondefault' => $this->msg( 'export-addcat' )->text(),
+                               'hide-if' => [ '===', 'exportall', '1' ],
                        ],
                ];
                if ( $config->get( 'ExportFromNamespaces' ) ) {
@@ -216,6 +217,7 @@ class SpecialExport extends SpecialPage {
                                        'buttontype' => 'submit',
                                        'buttonname' => 'addns',
                                        'buttondefault' => $this->msg( 'export-addns' )->text(),
+                                       'hide-if' => [ '===', 'exportall', '1' ],
                                ],
                        ];
                }
@@ -240,6 +242,7 @@ class SpecialExport extends SpecialPage {
                                'nodata' => true,
                                'rows' => 10,
                                'default' => $page,
+                               'hide-if' => [ '===', 'exportall', '1' ],
                        ],
                ];