r40924 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40923‎ | r40924 | r40925 >
Date:18:46, 16 September 2008
Author:mrzman
Status:old
Tags:
Comment:
Tweak to ProtectionForm: Title::getRestrictionExpiry returns 'infinity' for 'infinite'
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -97,7 +97,7 @@
9898 // Expiry selected from list
9999 $this->mExpiry[$action] = '';
100100 $this->mExpirySelection[$action] = $requestExpirySelection;
101 - } elseif ( $existingExpiry == 'infinite' ) {
 101+ } elseif ( $existingExpiry == 'infinity' ) {
102102 // Existing expiry is infinite, use "infinite" in drop-down
103103 $this->mExpiry[$action] = '';
104104 $this->mExpirySelection[$action] = 'infinite';