Merge "Improve ExtensionRegistry test coverage"
[lhc/web/wiklou.git] / includes / changetags / ChangeTagsRevisionItem.php
index 8225be4..2a98e20 100644 (file)
@@ -21,7 +21,7 @@
 
 /**
  * Item class for a live revision table row with its associated change tags.
- * @since 1.26
+ * @since 1.25
  */
 class ChangeTagsRevisionItem extends RevisionItem {
        /**
@@ -46,10 +46,14 @@ class ChangeTagsRevisionItem extends RevisionItem {
                }
 
                $content = "$difflink $revlink $userlink $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 );
                }