Merge "Enforce some type hinting in Linker class"
[lhc/web/wiklou.git] / includes / actions / ProtectAction.php
index 2c2b470..a7f1ac3 100644 (file)
@@ -41,6 +41,13 @@ class ProtectAction extends FormlessAction {
        }
 
        public function show() {
+               if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
+                       $out = $this->getOutput();
+                       $out->addModuleStyles( array(
+                               'mediawiki.ui.input',
+                               'mediawiki.ui.checkbox',
+                       ) );
+               }
 
                $this->page->protect();
        }