mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "Don't use RequestContext::getMain() if a context is available"
This commit is contained in:
commit
81360d0be3
|
@ -140,7 +140,7 @@ class VisualEditorHooks {
|
|||
* @returns boolean true
|
||||
*/
|
||||
public static function onEditPageShowEditFormFields( EditPage $editPage, OutputPage $output ) {
|
||||
$request = RequestContext::getMain()->getRequest();
|
||||
$request = $output->getRequest();
|
||||
if ( $request->getBool( 'veswitched' ) ) {
|
||||
$output->addHTML( Xml::input( 'veswitched', false, '1', array( 'type' => 'hidden' ) ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue