From 7049385253746e8f1be5a9825b216e0b7e9ba38d Mon Sep 17 00:00:00 2001 From: Alex Z Date: Mon, 29 Sep 2008 01:35:04 +0000 Subject: [PATCH] Use a new message for protection form expiry options instead of recycling the blockip one. --- includes/ProtectionForm.php | 2 +- languages/messages/MessagesEn.php | 1 + maintenance/language/messages.inc | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 85088316fc..20026ac866 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -322,7 +322,7 @@ class ProtectionForm { wfMsgForContent( 'protect-otherreason-op' ), $this->mReasonSelection, 'mwProtect-reason', 4 ); - $scExpiryOptions = wfMsgForContent( 'ipboptions' ); // FIXME: use its own message + $scExpiryOptions = wfMsgForContent( 'protect-expiry-options' ); $showProtectOptions = ($scExpiryOptions !== '-' && !$this->disabled); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 5a2bbf6950..5d53ef30a9 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2393,6 +2393,7 @@ You can change this page's protection level, but it will not affect the cascadin ** Counter-productive edit warring ** High traffic page', 'protect-edit-reasonlist' => 'Edit protection reasons', +'protect-expiry-options' => '1 hour:1 hour,1 day:1 day,1 week:1 week,2 weeks:2 weeks,1 month:1 month,3 months:3 months,6 months:6 months,1 year:1 year,infinite:infinite', 'restriction-type' => 'Permission:', 'restriction-level' => 'Restriction level:', 'minimum-size' => 'Min size', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 279f53fd8e..a1e962a520 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1579,6 +1579,7 @@ $wgMessageStructure = array( 'protect-otherreason-op', 'protect-dropdown', 'protect-edit-reasonlist', + 'protect-expiry-options', 'restriction-type', 'restriction-level', 'minimum-size', -- 2.20.1