Fix updateUserLinksDropdownItems not being called

Bug: T304002
Change-Id: Idc9cd3a324f48d2c48243b5011d1559839789539
This commit is contained in:
bwang 2022-03-16 15:50:23 -05:00 committed by Jdlrobson
parent 0b3d452083
commit 2567e48f64

View file

@ -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 );
} }