EditPage: Disable preview on open if $wgRawHtml is enabled
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 23 Sep 2017 21:07:15 +0000 (14:07 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 23 Sep 2017 21:07:15 +0000 (14:07 -0700)
commitc61d1894d0f635a124fe4f21d9ae7cae8595fef1
treea5f1cb34a38d5eea7ec436bfe9fa39041cd6053b
parent9617de614471c87b630db4b7d0378ceaac071a98
EditPage: Disable preview on open if $wgRawHtml is enabled

Otherwise the user will see a session failure message since their
request wasn't posted with a token, which doesn't make sense since they
just clicked on an edit link.

Bug: T172251
Change-Id: Id4a20818c737886f5a7ec72dba52c531f1ba78a0
includes/EditPage.php