We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4023fad commit 41f1149Copy full SHA for 41f1149
classes/output/navigation/primary.php
@@ -57,6 +57,20 @@ public function __construct($page) {
57
parent::__construct($page);
58
}
59
60
+ /**
61
+ * Override the parent function, so that it also works with associative arrays.
62
+ *
63
+ * @param object|array $node
64
+ * @param bool $expandedmenu
65
+ * @return bool
66
+ */
67
+ protected function flag_active_nodes(object|array $node, bool $expandedmenu = false): bool {
68
+ if (is_array($node)) {
69
+ $node = (object) $node;
70
+ }
71
+ return parent::flag_active_nodes($node, $expandedmenu);
72
73
+
74
/**
75
* Combine the various menus into a standardized output.
76
*
0 commit comments