HTMLForm: Refactor loading of modules required to infuse fields
[lhc/web/wiklou.git] / includes / htmlform / fields / HTMLSelectNamespace.php
index ffa2500..230790d 100644 (file)
@@ -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;
        }