diff options
Diffstat (limited to 'includes/actions/ProtectAction.php')
-rw-r--r-- | includes/actions/ProtectAction.php | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/includes/actions/ProtectAction.php b/includes/actions/ProtectAction.php index ec6648e2..a7f1ac34 100644 --- a/includes/actions/ProtectAction.php +++ b/includes/actions/ProtectAction.php @@ -41,30 +41,15 @@ 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(); - } - } -/** - * Handle page unprotection - * - * This is a wrapper that will call Article::unprotect(). - * - * @ingroup Actions - */ -class UnprotectAction extends ProtectAction { - - public function getName() { - return 'unprotect'; - } - - public function show() { - - $this->page->unprotect(); - - } - -} |