X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FEditPage.php;h=d8fef17792ae0a0286a742a937b007fb826a262d;hb=751bac3786c561225f121b607189ccd865416e1b;hp=23cdc3b9111cf077b7344c4f177b0a33634cd17b;hpb=ae58991566bd7f666982cdfcac9c84a79173d6ab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 23cdc3b911..d8fef17792 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -869,7 +869,7 @@ class EditPage { } elseif ( $this->section == 'new' ) { // Nothing *to* preview for new sections return false; - } elseif ( ( $request->getVal( 'preload' ) !== null || $this->mTitle->exists() ) + } elseif ( ( $request->getCheck( 'preload' ) || $this->mTitle->exists() ) && $this->context->getUser()->getOption( 'previewonfirst' ) ) { // Standard preference behavior @@ -975,7 +975,7 @@ class EditPage { $this->scrolltop = $request->getIntOrNull( 'wpScrolltop' ); - if ( $this->textbox1 === '' && $request->getVal( 'wpTextbox1' ) === null ) { + if ( $this->textbox1 === '' && !$request->getCheck( 'wpTextbox1' ) ) { // wpTextbox1 field is missing, possibly due to being "too big" // according to some filter rules such as Suhosin's setting for // suhosin.request.max_value_length (d'oh)