Add class to nuke contribs link

Continuation of MW core patch 603941

Change-Id: I3ae1aeddbd0c00ffecf7b8b8115cf161b0e15202
This commit is contained in:
TerraCodes 2022-06-17 18:53:57 +00:00 committed by [[mw:User:TerraCodes]]
parent 5cb6cece54
commit 029111351c

View file

@ -23,7 +23,10 @@ class Hooks implements ContributionsToolLinksHook {
$tools['nuke'] = $specialPage->getLinkRenderer()->makeKnownLink(
SpecialPage::getTitleFor( 'Nuke' ),
$specialPage->msg( 'nuke-linkoncontribs' )->text(),
[ 'title' => $specialPage->msg( 'nuke-linkoncontribs-text', $username )->text() ],
[
'title' => $specialPage->msg( 'nuke-linkoncontribs-text', $username )->text(),
'class' => 'mw-contributions-link-nuke'
],
[ 'target' => $username ]
);
}