r40542 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40541‎ | r40542 | r40543 >
Date:17:12, 6 September 2008
Author:aaron
Status:old
Tags:
Comment:
Fix regression from r40518; keep current values of page when no query params given
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -65,8 +65,8 @@
6666 : array();
6767
6868 $this->mReason = $wgRequest->getText( 'mwProtect-reason' );
69 - $this->mCascade = $wgRequest->getBool( 'mwProtect-cascade' );
70 - $this->mExpiry = $wgRequest->getText( 'mwProtect-expiry', 'infinite' );
 69+ $this->mCascade = $wgRequest->getBool( 'mwProtect-cascade', $this->mCascade );
 70+ $this->mExpiry = $wgRequest->getText( 'mwProtect-expiry', $this->mExpiry );
7171
7272 foreach( $this->mApplicableTypes as $action ) {
7373 $val = $wgRequest->getVal( "mwProtect-level-$action" );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r40518Set values from query params (bug 12750)aaron07:20, 6 September 2008