X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Flogging%2FProtectLogFormatter.php;h=64ec62693595e3f6d4fb9ff4fe4a198d73228337;hb=e626f8266eca6729e16fdac9e616c1e441d3013d;hp=045829719060797bb2e67662c472491dc6613874;hpb=bdfe02223205923d923923dd420ba0dd863cd0fe;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' ] );