IAlex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/154429

Change subject: Use local content to get configuration settings in Action
......................................................................

Use local content to get configuration settings in Action

Follow-up I47db5eab45 (b061c27)

Change-Id: I76409f5fc61e5d35235f964e094dd8881bcc8311
---
M includes/actions/DeleteAction.php
M includes/actions/EditAction.php
M includes/actions/ProtectAction.php
3 files changed, 3 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/29/154429/1

diff --git a/includes/actions/DeleteAction.php 
b/includes/actions/DeleteAction.php
index 9dc1049..12f0dff 100644
--- a/includes/actions/DeleteAction.php
+++ b/includes/actions/DeleteAction.php
@@ -41,8 +41,7 @@
        }
 
        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 aaf4526..8876724 100644
--- a/includes/actions/EditAction.php
+++ b/includes/actions/EditAction.php
@@ -41,8 +41,7 @@
        }
 
        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 443660b..a7f1ac3 100644
--- a/includes/actions/ProtectAction.php
+++ b/includes/actions/ProtectAction.php
@@ -41,8 +41,7 @@
        }
 
        public function show() {
-               global $wgUseMediaWikiUIEverywhere;
-               if ( $wgUseMediaWikiUIEverywhere ) {
+               if ( $this->getContext()->getConfig()->get( 
'UseMediaWikiUIEverywhere' ) ) {
                        $out = $this->getOutput();
                        $out->addModuleStyles( array(
                                'mediawiki.ui.input',

-- 
To view, visit https://gerrit.wikimedia.org/r/154429
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I76409f5fc61e5d35235f964e094dd8881bcc8311
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <coderev...@emsenhuber.ch>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to