From: Andrew Garrett Date: Wed, 17 Jun 2009 20:18:37 +0000 (+0000) Subject: Add classes to tag markers on recentchanges X-Git-Tag: 1.31.0-rc.0~41316 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=658797ef47f09bb378ef19e3651592d3734b3cd6;p=lhc%2Fweb%2Fwiklou.git Add classes to tag markers on recentchanges --- diff --git a/includes/ChangeTags.php b/includes/ChangeTags.php index 2f967101d0..23329c4570 100644 --- a/includes/ChangeTags.php +++ b/includes/ChangeTags.php @@ -13,11 +13,15 @@ class ChangeTags { $tags = explode( ',', $tags ); $displayTags = array(); foreach( $tags as $tag ) { - $displayTags[] = self::tagDescription( $tag ); + $displayTags[] = Xml::tags( 'span', + array( 'class' => "mw-tag-marker mw-tag-marker-$tag" ), + self::tagDescription( $tag ) ); $classes[] = Sanitizer::escapeClass( "mw-tag-$tag" ); } - return array( '(' . implode( ', ', $displayTags ) . ')', $classes ); + $markers = '(' . implode( ', ', $displayTags ) . ')'; + $markers = Xml::tags( 'span', array( 'class' => 'mw-tag-markers' ), $markers ); + return array( $markers, $classes ); } static function tagDescription( $tag ) {