X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FBlockLogFormatter.php;h=a0bfb59345d8cf7f96334775bfa46aacab204b60;hb=c584722cc2e3d33edae58d46c2149063b3fc6d72;hp=c3902326c60782140952987411c5cf6fd6f618eb;hpb=4721eb350a8e786cf44ec0d4d4fdf22417df7ba9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/BlockLogFormatter.php b/includes/logging/BlockLogFormatter.php index c3902326c6..a0bfb59345 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() ) : ''; }