Merge "Don't use RequestContext::getMain() if a context is available"

This commit is contained in:
jenkins-bot 2014-08-13 16:35:58 +00:00 committed by Gerrit Code Review
commit 81360d0be3

View file

@ -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' ) ) );
}