summaryrefslogtreecommitdiffstats
path: root/lib/class/catalog.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-26 04:08:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-26 04:08:45 +0000
commit13ae6a0371ae26023880a0ad69b3b1587db8dd76 (patch)
treeec0f94a7ee29fb4d34056f3e5a79bd620ad93161 /lib/class/catalog.class.php
parent9803be045ba3895cc981d5e7e22fd80f80d6544d (diff)
downloadampache-13ae6a0371ae26023880a0ad69b3b1587db8dd76.tar.gz
ampache-13ae6a0371ae26023880a0ad69b3b1587db8dd76.tar.bz2
ampache-13ae6a0371ae26023880a0ad69b3b1587db8dd76.zip
show the top 2 tags on songs, sync fixes from /branches/3.4 improved caching on song object
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r--lib/class/catalog.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index 22ef5ff2..0a7df3eb 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -1946,7 +1946,7 @@ debug_event('prefix',$prefix_pattern,'3');
return $tag->id;
}
// Oooh well time to add it
- Tag::add_tag_map($tag->id,$object_type,$object_id);
+ Tag::add_tag_map($tag->id,$object_type,$object_id,'0');
return $tag->id;
@@ -1957,7 +1957,7 @@ debug_event('prefix',$prefix_pattern,'3');
$tag = Tag::construct_from_name($value);
// Figure out the ID so we can cache it
- if (!$tag) { $insert_id = Tag::add_tag($object_type,$object_id,$value,'-1'); }
+ if (!$tag) { $insert_id = Tag::add_tag($object_type,$object_id,$value,'0'); }
else { $insert_id = $tag->id; }
// Add to the cache