* 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
* RevisionItem class but specifically for log items.
- * @since 1.26
+ * @since 1.25
*/
class ChangeTagsLogItem extends RevisionItemBase {
public function getIdField() {
$loglink = Linker::link(
SpecialPage::getTitleFor( 'Log' ),
$this->list->msg( 'log' )->escaped(),
- array(),
- array( 'page' => $title->getPrefixedText() )
+ [],
+ [ 'page' => $title->getPrefixedText() ]
);
$loglink = $this->list->msg( 'parentheses' )->rawParams( $loglink )->escaped();
// User links and action text
}
$content = "$loglink $date $action $comment";
- $attribs = array();
+ $attribs = [];
$tags = $this->getTags();
if ( $tags ) {
- list( $tagSummary, $classes ) = ChangeTags::formatSummaryRow( $tags, 'edittags' );
+ list( $tagSummary, $classes ) = ChangeTags::formatSummaryRow(
+ $tags,
+ 'edittags',
+ $this->list->getContext()
+ );
$content .= " $tagSummary";
$attribs['class'] = implode( ' ', $classes );
}