mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Fix updateUserLinksDropdownItems not being called
Bug: T304002 Change-Id: Idc9cd3a324f48d2c48243b5011d1559839789539
This commit is contained in:
parent
0b3d452083
commit
2567e48f64
|
@ -312,11 +312,13 @@ class Hooks {
|
||||||
// users in legacy Vector.
|
// users in legacy Vector.
|
||||||
unset( $content_navigation['user-page'] );
|
unset( $content_navigation['user-page'] );
|
||||||
} else {
|
} else {
|
||||||
|
if ( isset( $content_navigation['user-menu'] ) ) {
|
||||||
if ( isset( $content_navigation['user-menu']['watchlist'] ) ) {
|
if ( isset( $content_navigation['user-menu']['watchlist'] ) ) {
|
||||||
// Copy watchlist data into 'vector-user-menu-overflow'
|
// Copy watchlist data into 'vector-user-menu-overflow'
|
||||||
$content_navigation['vector-user-menu-overflow'] = [
|
$content_navigation['vector-user-menu-overflow'] = [
|
||||||
'watchlist' => $content_navigation['user-menu']['watchlist']
|
'watchlist' => $content_navigation['user-menu']['watchlist']
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
self::updateUserLinksDropdownItems( $sk, $content_navigation );
|
self::updateUserLinksDropdownItems( $sk, $content_navigation );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue