Skin talk:Citizen
Latest comment: 2 months ago by 144.6.223.215 in topic Set Headers to Collapsed on Desktop
![]() Archives
|
---|
"version": "2.40.2"; "MediaWiki": ">= 1.39.4"; "File": includes/Hooks/SkinHooks.php; "Line": 464
private static function addIconsToMenuItems( &$links, $menu ) {
// Loop through each menu to check/append its link classes.
foreach ( $links[$menu] as $key => $item ) {
[...]
}
}
Add a line, because $links[$menu]
can be Boolean
:
private static function addIconsToMenuItems( &$links, $menu ) {
if ( is_bool( $links[$menu] ) ) return; // <==== Add this line! <====
// Loop through each menu to check/append its link classes.
foreach ( $links[$menu] as $key => $item ) {
[...]
}
}
On the desktop version, Headers are set as collapsible, but you need to click them.
On the mobile version, Heads are collapsed by default, and you click them to open them.
Is it possible to set this behaviour on Desktop? Like for specific headers? 144.6.223.215 07:45, 2 April 2025 (UTC)