From: Alexandre Emsenhuber Date: Sat, 16 Aug 2014 19:25:16 +0000 (+0200) Subject: Use getConfig on local context to get configuration settings in Action X-Git-Tag: 1.31.0-rc.0~14380^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=2263cb185b96f1b5d997073d367c28b2cf7b68fa;p=lhc%2Fweb%2Fwiklou.git Use getConfig on local context to get configuration settings in Action Follow-up I47db5eab45 (aa15d528) Change-Id: I76409f5fc61e5d35235f964e094dd8881bcc8311 --- diff --git a/includes/actions/DeleteAction.php b/includes/actions/DeleteAction.php index 9dc10494b2..12f0dff044 100644 --- a/includes/actions/DeleteAction.php +++ b/includes/actions/DeleteAction.php @@ -41,8 +41,7 @@ class DeleteAction extends FormlessAction { } public function show() { - global $wgUseMediaWikiUIEverywhere; - if ( $wgUseMediaWikiUIEverywhere ) { + if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) { $out = $this->getOutput(); $out->addModuleStyles( array( 'mediawiki.ui.input', diff --git a/includes/actions/EditAction.php b/includes/actions/EditAction.php index aaf45269c2..8876724412 100644 --- a/includes/actions/EditAction.php +++ b/includes/actions/EditAction.php @@ -41,8 +41,7 @@ class EditAction extends FormlessAction { } public function show() { - global $wgUseMediaWikiUIEverywhere; - if ( $wgUseMediaWikiUIEverywhere ) { + if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) { $out = $this->getOutput(); $out->addModuleStyles( array( 'mediawiki.ui.input', diff --git a/includes/actions/ProtectAction.php b/includes/actions/ProtectAction.php index 443660b4f6..a7f1ac34e4 100644 --- a/includes/actions/ProtectAction.php +++ b/includes/actions/ProtectAction.php @@ -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',