From 282f772ac6118508346f452649d1bf6803479a64 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 5 May 2017 16:55:30 -0700 Subject: [PATCH] SpecialRecentchanges: Add class="mw-recentchanges-toplinks" to the "top links" 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index c10dbddf39..5f15305730 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -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, -- 2.20.1