X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FEditPage.php;h=cfb78cd78d834d09c36c541f1990d08659da287e;hp=9d83fbd91dfb4042af43d2dff8db11b9e1a05399;hb=24ebca2251f94a20acee53e583d65aa7fac2c15d;hpb=68b6b5341bc80d65656ac683aa3321e5cdbca884 diff --git a/includes/EditPage.php b/includes/EditPage.php index 9d83fbd91d..cfb78cd78d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3225,16 +3225,13 @@ class EditPage { protected function showFormBeforeText() { global $wgOut; - $section = htmlspecialchars( $this->section ); - $wgOut->addHTML( << - - - - - -HTML - ); + + $wgOut->addHTML( Html::hidden( 'wpSection', htmlspecialchars( $this->section ) ) ); + $wgOut->addHTML( Html::hidden( 'wpStarttime', $this->starttime ) ); + $wgOut->addHTML( Html::hidden( 'wpEdittime', $this->edittime ) ); + $wgOut->addHTML( Html::hidden( 'editRevId', $this->editRevId ) ); + $wgOut->addHTML( Html::hidden( 'wpScrolltop', $this->scrolltop ) ); + if ( !$this->checkUnicodeCompliantBrowser() ) { $wgOut->addHTML( Html::hidden( 'safemode', '1' ) ); } @@ -3498,8 +3495,8 @@ HTML } /** - * Inserts optional text shown below edit and upload forms. Can be used to offer special characters not present on - * most keyboards for copying/pasting. + * Inserts optional text shown below edit and upload forms. Can be used to offer special + * characters not present on most keyboards for copying/pasting. */ protected function showEditTools() { global $wgOut;