From 6f2e810f8bcaef6267071752f953b2c4015e0175 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Tue, 16 Sep 2008 18:46:58 +0000 Subject: [PATCH] Tweak to ProtectionForm: Title::getRestrictionExpiry returns 'infinity' for 'infinite' --- includes/ProtectionForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index c8b1f90685..07ded43ad8 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -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'; -- 2.20.1