r45373 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45372‎ | r45373 | r45374 >
Date:16:33, 3 January 2009
Author:aaron
Status:ok
Tags:
Comment:
(bug 16507) Not setting "other time" on creation unprotection error removed
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -242,6 +242,8 @@
243243 $expiry = array();
244244 foreach( $this->mApplicableTypes as $action ) {
245245 $expiry[$action] = $this->getExpiry( $action );
 246+ if( empty($this->mRestrictions[$action]) )
 247+ continue; // unprotected
246248 if ( !$expiry[$action] ) {
247249 $this->show( wfMsg( 'protect_expiry_invalid' ) );
248250 return false;

Status & tagging log