From: Bartosz DziewoƄski Date: Mon, 15 May 2017 18:33:37 +0000 (+0200) Subject: EditPage: Preserve &ooui=1 / &ooui=0 from URL after preview X-Git-Tag: 1.31.0-rc.0~3248^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=c94077e0e2c50a9f2ec70da928026826504b39f2;p=lhc%2Fweb%2Fwiklou.git EditPage: Preserve &ooui=1 / &ooui=0 from URL after preview Bug: T165237 Change-Id: Ia546159b45fabb1256f63f888412703ca3eba2e9 --- 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();