From fba68fd23bb806adabcdefacd700cccb3b5751bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sun, 31 Jul 2016 16:35:59 +0200 Subject: [PATCH] SpecialExport: Add 'hide-if' to form definition Change-Id: Ic03620849f863bc4e21347984f84c532c189c4ea --- includes/specials/SpecialExport.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index 3e66ab08d3..fe977398a4 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -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' ], ], ]; -- 2.20.1