X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FBlockLogFormatter.php;h=0d2238278541f3590f89e016f039827d9dfe71c0;hb=be004af9a2b94d3df8ff1432b0864df9528707e0;hp=a0bfb59345d8cf7f96334775bfa46aacab204b60;hpb=b929c0eb7f3a0954af5aca6d50995d87fa83945b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/BlockLogFormatter.php b/includes/logging/BlockLogFormatter.php index a0bfb59345..0d22382785 100644 --- a/includes/logging/BlockLogFormatter.php +++ b/includes/logging/BlockLogFormatter.php @@ -18,12 +18,10 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + * @license GPL-2.0-or-later * @since 1.25 */ -use MediaWiki\MediaWikiServices; - /** * This class formats block log entries. * @@ -60,7 +58,7 @@ class BlockLogFormatter extends LogFormatter { // 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(), @@ -99,7 +97,7 @@ class BlockLogFormatter extends LogFormatter { public function getActionLinks() { $subtype = $this->entry->getSubtype(); - $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $linkRenderer = $this->getLinkRenderer(); if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden || !( $subtype === 'block' || $subtype === 'reblock' ) || !$this->context->getUser()->isAllowed( 'block' )