X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=b6ba918d4db95e62129a60503dbdd3291563d5d4;hb=a94900fab00c6bb764f14e6db89bb0edc237f7af;hp=4cad7b745ae4d668ecb3ddc716d4ab252df49c32;hpb=f6b7ffab94a873f324e8d65cee909221d1651325;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 4cad7b745a..b6ba918d4d 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -384,7 +384,11 @@ class ProtectionForm { "mwProtect-$action-expires" ); - $expiryFormOptions = new XmlSelect( "wpProtectExpirySelection-$action", "mwProtectExpirySelection-$action", $this->mExpirySelection[$action] ); + $expiryFormOptions = new XmlSelect( + "wpProtectExpirySelection-$action", + "mwProtectExpirySelection-$action", + $this->mExpirySelection[$action] + ); $expiryFormOptions->setAttribute( 'tabindex', '2' ); if ( $this->disabled ) { $expiryFormOptions->setAttribute( 'disabled', 'disabled' ); @@ -397,12 +401,20 @@ class ProtectionForm { $timestamp = $lang->userTimeAndDate( $this->mExistingExpiry[$action], $user ); $d = $lang->userDate( $this->mExistingExpiry[$action], $user ); $t = $lang->userTime( $this->mExistingExpiry[$action], $user ); - $existingExpiryMessage = $context->msg( 'protect-existing-expiry', $timestamp, $d, $t ); + $existingExpiryMessage = $context->msg( + 'protect-existing-expiry', + $timestamp, + $d, + $t + ); } $expiryFormOptions->addOption( $existingExpiryMessage->text(), 'existing' ); } - $expiryFormOptions->addOption( $context->msg( 'protect-othertime-op' )->text(), 'othertime' ); + $expiryFormOptions->addOption( + $context->msg( 'protect-othertime-op' )->text(), + 'othertime' + ); foreach ( explode( ',', $scExpiryOptions ) as $option ) { if ( strpos( $option, ":" ) === false ) { $show = $value = $option;