X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2Factions%2FProtectAction.php;h=2e9e093405129d1f3ff2e37812f17d89f992e1e3;hb=c3ba0816e17e880623130fe0b626e963c59fa419;hp=48909cfd7206ebf860974db5a46cb8a5991578ab;hpb=e047732be4f78b1f803173db4b10fcde45225e6d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/ProtectAction.php b/includes/actions/ProtectAction.php index 48909cfd72..2e9e093405 100644 --- a/includes/actions/ProtectAction.php +++ b/includes/actions/ProtectAction.php @@ -43,12 +43,16 @@ class ProtectAction extends FormlessAction { public function show() { if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) { $out = $this->getOutput(); - $out->addModuleStyles( array( + $out->addModuleStyles( [ 'mediawiki.ui.input', 'mediawiki.ui.checkbox', - ) ); + ] ); } $this->page->protect(); } + + public function doesWrites() { + return true; + } }