dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8910707
)
SpecialExport: Add 'hide-if' to form definition
author
Bartosz Dziewoński
<matma.rex@gmail.com>
Sun, 31 Jul 2016 14:35:59 +0000
(16:35 +0200)
committer
Jforrester
<jforrester@wikimedia.org>
Mon, 22 Aug 2016 15:56:42 +0000
(15:56 +0000)
Change-Id: Ic03620849f863bc4e21347984f84c532c189c4ea
includes/specials/SpecialExport.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialExport.php
b/includes/specials/SpecialExport.php
index
3e66ab0
..
fe97739
100644
(file)
--- 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' ],
],
];