From cf1a7f6df7fb0b475dab583d73fb9e27b7316ef0 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 23 May 2011 11:25:50 +0000 Subject: TokenInput : order tags, theme for roma, 'new' text translated git-svn-id: http://piwigo.org/svn/trunk@11008 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'admin/include/functions.php') diff --git a/admin/include/functions.php b/admin/include/functions.php index 8095daf0f..20bfbfb51 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -2100,6 +2100,7 @@ function get_active_menu($menu_page) function get_fckb_taglist($query) { $result = pwg_query($query); + $taglist = array(); while ($row = pwg_db_fetch_assoc($result)) { @@ -2111,7 +2112,10 @@ function get_fckb_taglist($query) ) ); } - + + $cmp = create_function('$a,$b', 'return strcasecmp($a["name"], $b["name"]);'); + usort($taglist, $cmp); + return $taglist; } -- cgit v1.2.3