From: umherirrender Date: Fri, 19 Jun 2015 15:36:18 +0000 (+0200) Subject: Add class to items in changeslist legend X-Git-Tag: 1.31.0-rc.0~10901^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=f0a8f8e65000a35ede745bcd29b908b8277c42dd;p=lhc%2Fweb%2Fwiklou.git Add class to items in changeslist legend The text part of the legend on Special:RecentChanges and Special:Watchlist does not have a own class for styling. Added a 'mw-changeslist-legend-*' class to the items similar to the already existing class 'mw-changeslist-legend-plusminus' for the last item. Change-Id: Ib249d4d7a78a5e3deaace27ceee1abc955b96160 --- diff --git a/includes/specialpage/ChangesListSpecialPage.php b/includes/specialpage/ChangesListSpecialPage.php index b9132358a6..23bd394ccb 100644 --- a/includes/specialpage/ChangesListSpecialPage.php +++ b/includes/specialpage/ChangesListSpecialPage.php @@ -434,7 +434,8 @@ abstract class ChangesListSpecialPage extends SpecialPage { $legend .= Html::element( 'dt', array( 'class' => $cssClass ), $context->msg( $letter )->text() ) . "\n" . - Html::rawElement( 'dd', array(), + Html::rawElement( 'dd', + array( 'class' => Sanitizer::escapeClass( 'mw-changeslist-legend-' . $key ) ), $context->msg( $label )->parse() ) . "\n"; }