Skip to content
Snippets Groups Projects
Commit 6ac9f889 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Bugfix: fix glitch in menu rendering code.  Patch #42 by Al.
parent e1adc0f7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -96,7 +96,7 @@ function _menu_sort($a, $b) { ...@@ -96,7 +96,7 @@ function _menu_sort($a, $b) {
global $_gmenu; global $_gmenu;
$a = &$_gmenu[$a]; $a = &$_gmenu[$a];
$b = &$_gmenu[$b]; $b = &$_gmenu[$b];
return $a["weight"] < $b["weight"] ? -11 : ($a["weight"] > $b["weight"] ? 1 : ($a["name"] < $b["name"] ? -1 : 1)); return $a["weight"] < $b["weight"] ? -1 : ($a["weight"] > $b["weight"] ? 1 : ($a["title"] < $b["title"] ? -1 : 1));
} }
function menu_tree($parent = "") { function menu_tree($parent = "") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment