Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/214299
Change subject: OOUIHTMLForm: Access context after parent constructor is called
......................................................................
OOUIHTMLForm: Access context after parent constructor is called
This avoids "ContextSource::getContext (OOUIHTMLForm): called and $context
is null. Using RequestContext::getMain() for sanity"
Change-Id: I20c2bb58b3a0e5e259241a3715ee8fdf4b57e148
---
M includes/htmlform/OOUIHTMLForm.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/99/214299/1
diff --git a/includes/htmlform/OOUIHTMLForm.php
b/includes/htmlform/OOUIHTMLForm.php
index 60e6366..6c9952a 100644
--- a/includes/htmlform/OOUIHTMLForm.php
+++ b/includes/htmlform/OOUIHTMLForm.php
@@ -32,10 +32,10 @@
protected $mWrapperLegend = false;
public function __construct( $descriptor, $context = null,
$messagePrefix = '' ) {
+ parent::__construct( $descriptor, $context, $messagePrefix );
$this->getOutput()->enableOOUI();
$this->getOutput()->addModules( 'mediawiki.htmlform.ooui' );
$this->getOutput()->addModuleStyles(
'mediawiki.htmlform.ooui.styles' );
- parent::__construct( $descriptor, $context, $messagePrefix );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/214299
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I20c2bb58b3a0e5e259241a3715ee8fdf4b57e148
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