SpecialRecentchanges: Add class="mw-recentchanges-toplinks" to the "top links"
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 5 May 2017 23:55:30 +0000 (16:55 -0700)
committerRoan Kattouw <roan.kattouw@gmail.com>
Fri, 5 May 2017 23:55:30 +0000 (16:55 -0700)
Meaning the contents of [[MediaWiki:Recentchangestext]], which is a series
of quick links on most wikis.

Bug: T164617
Change-Id: I2934156af5aafa3162924ecf78cfd82d3a41370d

includes/specials/SpecialRecentchanges.php

index c10dbdd..5f15305 100644 (file)
@@ -619,7 +619,11 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
                if ( !$message->isDisabled() ) {
                        $this->getOutput()->addWikiText(
                                Html::rawElement( 'div',
-                                       [ 'lang' => $wgContLang->getHtmlCode(), 'dir' => $wgContLang->getDir() ],
+                                       [
+                                               'class' => 'mw-recentchanges-toplinks',
+                                               'lang' => $wgContLang->getHtmlCode(),
+                                               'dir' => $wgContLang->getDir()
+                                       ],
                                        "\n" . $message->plain() . "\n"
                                ),
                                /* $lineStart */ true,