Tweak to ProtectionForm: Title::getRestrictionExpiry returns 'infinity' for 'infinite'
authorAlex Z <mrzman@users.mediawiki.org>
Tue, 16 Sep 2008 18:46:58 +0000 (18:46 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Tue, 16 Sep 2008 18:46:58 +0000 (18:46 +0000)
includes/ProtectionForm.php

index c8b1f90..07ded43 100644 (file)
@@ -97,7 +97,7 @@ class ProtectionForm {
                                // Expiry selected from list
                                $this->mExpiry[$action] = '';
                                $this->mExpirySelection[$action] = $requestExpirySelection;
-                       } elseif ( $existingExpiry == 'infinite' ) {
+                       } elseif ( $existingExpiry == 'infinity' ) {
                                // Existing expiry is infinite, use "infinite" in drop-down
                                $this->mExpiry[$action] = '';
                                $this->mExpirySelection[$action] = 'infinite';