mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 01:09:19 -04:00
Improve the solution for #1545 by sorting the settings menu properly
to be naturally ordered and case insensitive.
This commit is contained in:
@@ -46,7 +46,7 @@ class Admin_View_Core extends Gallery_View {
|
||||
module::event("admin_menu", $menu, $this);
|
||||
|
||||
$settings_menu = $menu->get("settings_menu");
|
||||
sort($settings_menu->elements);
|
||||
uasort($settings_menu->elements, array("Menu", "title_comparator"));
|
||||
|
||||
return $menu->render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user