This commit is contained in:
Shish 2009-01-24 10:59:00 -08:00
parent d8e3ba6f4d
commit 5600e00de9
2 changed files with 4 additions and 4 deletions

View File

@ -489,7 +489,7 @@ class Tag {
// do nothing
}
else {
die("tag_explode only takes strings or arrays");
die("Tag::explode() only takes strings or arrays");
}
$tags = array_map("trim", $tags);

View File

@ -242,11 +242,11 @@ class TagList implements Extension {
global $config;
$query = "
SELECT tags.tag, tags.count
SELECT tags.tag, tags.count as calc_count
FROM tags, image_tags
WHERE tags.id = image_tags.tag_id
AND image_tags.image_id = ?
ORDER BY count DESC
ORDER BY calc_count DESC
LIMIT ?
";
$args = array($image->id, $config->get_int('tag_list_length'));
@ -280,7 +280,7 @@ class TagList implements Extension {
global $database;
global $config;
$wild_tags = tag_explode($search);
$wild_tags = Tag::explode($search);
// $search_tags = array();
$tag_id_array = array();