Merge "objectcache: Always use interim values on WAN cache tombstones"
[lhc/web/wiklou.git] / includes / logging / ProtectLogFormatter.php
index 0458297..64ec626 100644 (file)
@@ -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' ]
                        );