mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 08:58:25 +00:00
Merge "Random link in main menu can be customised"
This commit is contained in:
commit
d2e723daf9
|
@ -142,10 +142,11 @@ final class Definitions {
|
|||
* @throws MWException
|
||||
*/
|
||||
public function insertRandomItem( Group $group ) {
|
||||
$page = $this->context->msg( 'randompage-url' )->escaped();
|
||||
// Random link
|
||||
$group->insert( 'random' )
|
||||
->addComponent( $this->context->msg( 'mobile-frontend-random-button' )->escaped(),
|
||||
SpecialPage::getTitleFor( 'Randompage' )->getLocalURL() . '#/random',
|
||||
Title::newFromText( $page )->getLocalURL() . '#/random',
|
||||
MinervaUI::iconClass( 'random', 'before' ), [
|
||||
'id' => 'randomButton',
|
||||
'data-event-name' => 'random',
|
||||
|
|
Loading…
Reference in a new issue