Merge "Render dates as headings"

This commit is contained in:
jenkins-bot 2013-07-02 18:24:43 +00:00 committed by Gerrit Code Review
commit d0c022e09a

View file

@ -56,7 +56,9 @@ class SpecialNotifications extends SpecialPage {
// Output the date header if it has not been displayed
if ( $dateHeader !== $row['timestamp']['date'] ) {
$dateHeader = $row['timestamp']['date'];
$notices .= Html::rawElement( 'li', array( 'class' => 'mw-echo-date-section' ), $dateHeader );
$notices .= Html::openElement( 'li' );
$notices .= Html::element( 'h2', array( 'class' => 'mw-echo-date-section' ), $dateHeader );
$notices .= Html::closeElement( 'li' );
}
$class = 'mw-echo-notification';