X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Flogging%2FBlockLogFormatter.php;h=1ed18cd0bb7f5dc2f8f0df44a6b4621522572948;hb=7320a9577e882fbeacb1772977fbfecf8aa5424d;hp=c3902326c60782140952987411c5cf6fd6f618eb;hpb=3315354fd39f9bd60351ca27c73bafa05d449308;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/logging/BlockLogFormatter.php b/includes/logging/BlockLogFormatter.php
index c3902326c6..1ed18cd0bb 100644
--- a/includes/logging/BlockLogFormatter.php
+++ b/includes/logging/BlockLogFormatter.php
@@ -59,9 +59,15 @@ class BlockLogFormatter extends LogFormatter {
// The lrm is needed to make sure that the number
// is shown on the correct side of the tooltip text.
$durationTooltip = '' . htmlspecialchars( $params[4] );
- $params[4] = Message::rawParam( "" .
- $this->context->getLanguage()->translateBlockExpiry( $params[4],
- $this->context->getUser() ) . '' );
+ $params[4] = Message::rawParam(
+ "" .
+ $this->context->getLanguage()->translateBlockExpiry(
+ $params[4],
+ $this->context->getUser(),
+ wfTimestamp( TS_UNIX, $this->entry->getTimestamp() )
+ ) .
+ ''
+ );
$params[5] = isset( $params[5] ) ?
self::formatBlockFlags( $params[5], $this->context->getLanguage() ) : '';
}