From: Bartosz DziewoƄski Date: Sun, 31 Jul 2016 14:35:59 +0000 (+0200) Subject: SpecialExport: Add 'hide-if' to form definition X-Git-Tag: 1.31.0-rc.0~5924^2~2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=fba68fd23bb806adabcdefacd700cccb3b5751bb;p=lhc%2Fweb%2Fwiklou.git SpecialExport: Add 'hide-if' to form definition Change-Id: Ic03620849f863bc4e21347984f84c532c189c4ea --- 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' ], ], ];