X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FProtectLogFormatter.php;h=64ec62693595e3f6d4fb9ff4fe4a198d73228337;hb=0b9edb467bbe687ff4e29088a4e5f008770a07a8;hp=045829719060797bb2e67662c472491dc6613874;hpb=96906168cac0e9a7748511b48c369cf22c8406d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/ProtectLogFormatter.php b/includes/logging/ProtectLogFormatter.php index 0458297190..64ec626935 100644 --- a/includes/logging/ProtectLogFormatter.php +++ b/includes/logging/ProtectLogFormatter.php @@ -77,6 +77,7 @@ class ProtectLogFormatter extends LogFormatter { } public function getActionLinks() { + $linkRenderer = $this->getLinkRenderer(); $subtype = $this->entry->getSubtype(); if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden || $subtype === 'move_prot' // the move log entry has the right action link @@ -87,8 +88,8 @@ class ProtectLogFormatter extends LogFormatter { // Show history link for all changes after the protection $title = $this->entry->getTarget(); $links = [ - Linker::link( $title, - $this->msg( 'hist' )->escaped(), + $linkRenderer->makeLink( $title, + $this->msg( 'hist' )->text(), [], [ 'action' => 'history', @@ -99,9 +100,9 @@ class ProtectLogFormatter extends LogFormatter { // Show change protection link if ( $this->context->getUser()->isAllowed( 'protect' ) ) { - $links[] = Linker::linkKnown( + $links[] = $linkRenderer->makeKnownLink( $title, - $this->msg( 'protect_change' )->escaped(), + $this->msg( 'protect_change' )->text(), [], [ 'action' => 'protect' ] );