aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-05-23 11:25:50 +0000
committermistic100 <mistic@piwigo.org>2011-05-23 11:25:50 +0000
commitcf1a7f6df7fb0b475dab583d73fb9e27b7316ef0 (patch)
tree91ece88cd141abc20c28dfa5839881950de2004a /admin/include
parent2b00bd8c475e04fde251c0890e0d2ee9df149735 (diff)
TokenInput : order tags, theme for roma, 'new' text translated
git-svn-id: http://piwigo.org/svn/trunk@11008 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions.php6
1 files changed, 5 insertions, 1 deletions
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;
}