From a5fae953fd3f155b55f1bbf59bd38ff9dfa59444 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 6 Sep 2008 17:12:45 +0000 Subject: [PATCH] Fix regression from r40518; keep current values of page when no query params given --- includes/ProtectionForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 4b3eaffd57..969382ce7a 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -65,8 +65,8 @@ class ProtectionForm { : array(); $this->mReason = $wgRequest->getText( 'mwProtect-reason' ); - $this->mCascade = $wgRequest->getBool( 'mwProtect-cascade' ); - $this->mExpiry = $wgRequest->getText( 'mwProtect-expiry', 'infinite' ); + $this->mCascade = $wgRequest->getBool( 'mwProtect-cascade', $this->mCascade ); + $this->mExpiry = $wgRequest->getText( 'mwProtect-expiry', $this->mExpiry ); foreach( $this->mApplicableTypes as $action ) { $val = $wgRequest->getVal( "mwProtect-level-$action" ); -- 2.20.1