X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBlock.php;h=b6484ce4d846f95e3f5f608707826c46b4a7cbc6;hb=29719f846b8887e1190ddf85125387c079f9539b;hp=4d74fe18df1b4a7b0bb571834219beb7322e620a;hpb=ed6b0a2a205afaca3f1117577c86167ce1871a48;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 4d74fe18df..b6484ce4d8 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -144,6 +144,7 @@ class SpecialBlock extends FormSpecialPage { 'tabindex' => '2', 'options' => self::getSuggestedDurations(), 'other' => $this->msg( 'ipbother' )->text(), + 'default' => $this->msg( 'ipb-default-expiry' )->inContentLanguage()->text(), ), 'Reason' => array( 'type' => 'selectandother', @@ -271,7 +272,7 @@ class SpecialBlock extends FormSpecialPage { } if( $block->mExpiry == 'infinity' ) { - $fields['Expiry']['default'] = 'indefinite'; + $fields['Expiry']['default'] = 'infinite'; } else { $fields['Expiry']['default'] = wfTimestamp( TS_RFC2822, $block->mExpiry ); } @@ -300,6 +301,8 @@ class SpecialBlock extends FormSpecialPage { * @return String */ protected function preText(){ + $this->getOutput()->addModules( 'mediawiki.special.block' ); + $text = $this->msg( 'blockiptext' )->parse(); $otherBlockMessages = array(); @@ -338,6 +341,8 @@ class SpecialBlock extends FormSpecialPage { * @return string */ protected function postText(){ + $links = array(); + # Link to the user's contributions, if applicable if( $this->target instanceof User ){ $contribsPage = SpecialPage::getTitleFor( 'Contributions', $this->target->getName() );