X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fchangetags%2FChangeTagsLogItem.php;h=b78efafa65fef9ee45e1235641d4daa330fbadba;hb=be0d9f587138a79e8f18bc7b26dd297d708b72c4;hp=24bded7498ea7261f9d18bcc8b0a8c7b16341c1b;hpb=554ca56fd5e76b0216c09543d447dbecd5773202;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changetags/ChangeTagsLogItem.php b/includes/changetags/ChangeTagsLogItem.php index 24bded7498..b78efafa65 100644 --- a/includes/changetags/ChangeTagsLogItem.php +++ b/includes/changetags/ChangeTagsLogItem.php @@ -19,6 +19,8 @@ * @ingroup Change tagging */ +use MediaWiki\MediaWikiServices; + /** * Item class for a logging table row with its associated change tags. * @todo Abstract out a base class for this and RevDelLogItem, similar to the @@ -70,11 +72,11 @@ class ChangeTagsLogItem extends RevisionItemBase { $formatter->setAudience( LogFormatter::FOR_THIS_USER ); // Log link for this page - $loglink = Linker::link( + $loglink = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink( SpecialPage::getTitleFor( 'Log' ), - $this->list->msg( 'log' )->escaped(), - array(), - array( 'page' => $title->getPrefixedText() ) + $this->list->msg( 'log' )->text(), + [], + [ 'page' => $title->getPrefixedText() ] ); $loglink = $this->list->msg( 'parentheses' )->rawParams( $loglink )->escaped(); // User links and action text @@ -88,7 +90,7 @@ class ChangeTagsLogItem extends RevisionItemBase { } $content = "$loglink $date $action $comment"; - $attribs = array(); + $attribs = []; $tags = $this->getTags(); if ( $tags ) { list( $tagSummary, $classes ) = ChangeTags::formatSummaryRow(