aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_tag.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2006-05-15 21:22:43 +0000
committerplegall <plg@piwigo.org>2006-05-15 21:22:43 +0000
commitfc986780f925516cff2000aba129c7de83732110 (patch)
tree02fd904fc2003f0d9758607927ee3a21a803be7e /include/functions_tag.inc.php
parent82e74dc53f0f3ac13b50ee563fed4213911994aa (diff)
merge -r1308:1309 from branch 1.6 to trunk (bug 367 fixed)
git-svn-id: http://piwigo.org/svn/trunk@1310 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_tag.inc.php')
-rw-r--r--include/functions_tag.inc.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/functions_tag.inc.php b/include/functions_tag.inc.php
index 3e3934669..046eb6bb1 100644
--- a/include/functions_tag.inc.php
+++ b/include/functions_tag.inc.php
@@ -91,9 +91,10 @@ SELECT DISTINCT image_id
function get_all_tags()
{
$query = '
-SELECT id AS tag_id, name, url_name
+SELECT id AS tag_id,
+ name,
+ url_name
FROM '.TAGS_TABLE.'
- ORDER BY name
;';
$result = pwg_query($query);
@@ -104,6 +105,8 @@ SELECT id AS tag_id, name, url_name
array_push($tags, $row);
}
+ usort($tags, 'name_compare');
+
return $tags;
}