Legoktm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/365827 )

Change subject: Avoid globals in EditPage::__construct()
......................................................................

Avoid globals in EditPage::__construct()

Change-Id: Icb1d1042f4bb5e4397c49f20ce26ab9c73e9d0d1
---
M includes/EditPage.php
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/27/365827/1

diff --git a/includes/EditPage.php b/includes/EditPage.php
index 814c248..973327b 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -422,8 +422,6 @@
         * @param Article $article
         */
        public function __construct( Article $article ) {
-               global $wgOOUIEditPage;
-
                $this->mArticle = $article;
                $this->page = $article->getPage(); // model object
                $this->mTitle = $article->getTitle();
@@ -434,7 +432,7 @@
                $handler = ContentHandler::getForModelID( $this->contentModel );
                $this->contentFormat = $handler->getDefaultFormat();
 
-               $this->oouiEnabled = $wgOOUIEditPage;
+               $this->oouiEnabled = $this->context->getConfig()->get( 
'OOUIEditPage' );
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb1d1042f4bb5e4397c49f20ce26ab9c73e9d0d1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to