API: Add wfDeprecated() to deprecated ApiResult methods
[lhc/web/wiklou.git] / includes / actions / ProtectAction.php
index 443660b..a7f1ac3 100644 (file)
@@ -41,8 +41,7 @@ class ProtectAction extends FormlessAction {
        }
 
        public function show() {
-               global $wgUseMediaWikiUIEverywhere;
-               if ( $wgUseMediaWikiUIEverywhere ) {
+               if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
                        $out = $this->getOutput();
                        $out->addModuleStyles( array(
                                'mediawiki.ui.input',