From c94077e0e2c50a9f2ec70da928026826504b39f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 15 May 2017 20:33:37 +0200 Subject: [PATCH] EditPage: Preserve &ooui=1 / &ooui=0 from URL after preview Bug: T165237 Change-Id: Ia546159b45fabb1256f63f888412703ca3eba2e9 --- includes/EditPage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/EditPage.php b/includes/EditPage.php index b1f50f089d..098ffbf791 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2753,6 +2753,9 @@ class EditPage { $wgOut->addHTML( Html::hidden( 'format', $this->contentFormat ) ); $wgOut->addHTML( Html::hidden( 'model', $this->contentModel ) ); + // Preserve &ooui=1 / &ooui=0 from URL parameters after submitting the page for preview + $wgOut->addHTML( Html::hidden( 'ooui', $this->oouiEnabled ? '1' : '0' ) ); + // following functions will need OOUI, enable it only once; here. if ( $this->oouiEnabled ) { $wgOut->enableOOUI(); -- 2.20.1