summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-12-29 17:31:28 -0800
committerBharat Mediratta <bharat@menalto.com>2010-12-29 17:31:28 -0800
commita8b0254e4a64b46bef303fbf2dafc4d9553ae38f (patch)
tree5c6647654015d07eb7b98390327b18b8b0454dae /modules/gallery/helpers/gallery_event.php
parentdd6da5e2333023895a4a76786910f4bdf7e395c8 (diff)
Improve the solution for #1545 by sorting the settings menu properly
to be naturally ordered and case insensitive.
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 5d3ee6ee..689e21d1 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -377,7 +377,7 @@ class gallery_event_Core {
module::event("admin_menu", $admin_menu, $theme);
$settings_menu = $admin_menu->get("settings_menu");
- sort($settings_menu->elements);
+ uasort($settings_menu->elements, array("Menu", "title_comparator"));
}
}
}