dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HTMLForm: Refactor loading of modules required to infuse fields
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
fields
/
HTMLSelectNamespace.php
diff --git
a/includes/htmlform/fields/HTMLSelectNamespace.php
b/includes/htmlform/fields/HTMLSelectNamespace.php
index
ffa2500
..
230790d
100644
(file)
--- a/
includes/htmlform/fields/HTMLSelectNamespace.php
+++ b/
includes/htmlform/fields/HTMLSelectNamespace.php
@@
-34,6
+34,11
@@
class HTMLSelectNamespace extends HTMLFormField {
] );
}
+ protected function getOOUIModules() {
+ // FIXME: NamespaceInputWidget should be in its own module (probably?)
+ return [ 'mediawiki.widgets' ];
+ }
+
protected function shouldInfuseOOUI() {
return true;
}