jenkins-bot has submitted this change and it was merged.

Change subject: Avoid RequestContext::getMain()
......................................................................


Avoid RequestContext::getMain()

Change-Id: I7802ad88ec7a86d2323f3c582cadf8d80d53ab7d
---
M VisualEditor.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php
index c52b934..ae26d9a 100644
--- a/VisualEditor.hooks.php
+++ b/VisualEditor.hooks.php
@@ -309,7 +309,7 @@
                                        $editTab['text'] = $skin->msg( 
$editTabMessage )->text();
                                }
 
-                               $editor = self::getUserEditor( $user, 
RequestContext::getMain()->getRequest() );
+                               $editor = self::getUserEditor( $user, 
$skin->getRequest() );
                                if (
                                        $isAvailable &&
                                        $config->get( 
'VisualEditorUseSingleEditTab' ) &&

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7802ad88ec7a86d2323f3c582cadf8d80d53ab7d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to