r41365 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41364‎ | r41365 | r41366 >
Date:01:35, 29 September 2008
Author:mrzman
Status:old
Tags:
Comment:
Use a new message for protection form expiry options instead of recycling the blockip one.
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messages.inc
@@ -1579,6 +1579,7 @@
15801580 'protect-otherreason-op',
15811581 'protect-dropdown',
15821582 'protect-edit-reasonlist',
 1583+ 'protect-expiry-options',
15831584 'restriction-type',
15841585 'restriction-level',
15851586 'minimum-size',
Index: trunk/phase3/includes/ProtectionForm.php
@@ -322,7 +322,7 @@
323323 wfMsgForContent( 'protect-otherreason-op' ),
324324 $this->mReasonSelection,
325325 'mwProtect-reason', 4 );
326 - $scExpiryOptions = wfMsgForContent( 'ipboptions' ); // FIXME: use its own message
 326+ $scExpiryOptions = wfMsgForContent( 'protect-expiry-options' );
327327
328328 $showProtectOptions = ($scExpiryOptions !== '-' && !$this->disabled);
329329
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -2393,6 +2393,7 @@
23942394 ** Counter-productive edit warring
23952395 ** High traffic page',
23962396 'protect-edit-reasonlist' => 'Edit protection reasons',
 2397+'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',
23972398 'restriction-type' => 'Permission:',
23982399 'restriction-level' => 'Restriction level:',
23992400 'minimum-size' => 'Min size',

Status & tagging log