Skin talk:Citizen

Latest comment: 2 months ago by 144.6.223.215 in topic Set Headers to Collapsed on Desktop

Bugfix for Version 2.40.2

edit

"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 ) {
			[...]
		}
	}

WikiForMen (talk) 23:30, 6 January 2025 (UTC)Reply

Set Headers to Collapsed on Desktop

edit

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)Reply

Return to "Citizen" page.