Use a new message for protection form expiry options instead of recycling the blockip...
authorAlex Z <mrzman@users.mediawiki.org>
Mon, 29 Sep 2008 01:35:04 +0000 (01:35 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Mon, 29 Sep 2008 01:35:04 +0000 (01:35 +0000)
includes/ProtectionForm.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 8508831..20026ac 100644 (file)
@@ -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);
 
index 5a2bbf6..5d53ef3 100644 (file)
@@ -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',
index 279f53f..a1e962a 100644 (file)
@@ -1579,6 +1579,7 @@ $wgMessageStructure = array(
                'protect-otherreason-op',
                'protect-dropdown',
                'protect-edit-reasonlist',
+               'protect-expiry-options',
                'restriction-type',
                'restriction-level',
                'minimum-size',