diff --git a/special/SpecialNotifications.php b/special/SpecialNotifications.php index 1d19e4cb3..5b48eea89 100644 --- a/special/SpecialNotifications.php +++ b/special/SpecialNotifications.php @@ -56,9 +56,7 @@ 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::openElement( 'li' ); - $notices .= Html::element( 'h2', array( 'class' => 'mw-echo-date-section' ), $dateHeader ); - $notices .= Html::closeElement( 'li' ); + $notices .= Html::rawElement( 'li', array( 'class' => 'mw-echo-date-section' ), $dateHeader ); } $class = 'mw-echo-notification';