X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FProtectAction.php;h=a7f1ac34e45eb88634b57136bde7ab840019d061;hb=0c86649f4b683598761eaeb01929984adb373b0b;hp=2c2b4709f5df5a632724d1ee3b74feac004c70dd;hpb=23376a76c91b26353e5d2f546520002490c761d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/ProtectAction.php b/includes/actions/ProtectAction.php index 2c2b4709f5..a7f1ac34e4 100644 --- a/includes/actions/ProtectAction.php +++ b/includes/actions/ProtectAction.php @@ -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(); }