Merge from 19_STABLE
authorscyrma <scyrma>
Wed, 6 Feb 2008 03:37:30 +0000 (03:37 +0000)
committerscyrma <scyrma>
Wed, 6 Feb 2008 03:37:30 +0000 (03:37 +0000)
blog/lib.php
tag/lib.php

index 735b0336a0ca8c8d33343944692c1619bb99101a..5a8ba603a2645abdc9b1d34966bf87d7008c3018 100755 (executable)
                                      WHERE t.id = ti.tagid
                                      AND ti.entryid = '.$blogEntry->id)) {
         */
-        if (!empty($CFG->usetags) && ($blogtags = get_item_tags('blog', $blogEntry->id))) {
+        if (!empty($CFG->usetags) && ($blogtags = get_item_tags('post', $blogEntry->id))) {
             echo '<div class="tags">';
             if ($blogtags) {
                 print_string('tags');
index 272e158f08fdafe85e9652216dea62651885b46f..788c49e25a5af4b1983f6f1ef98499891be9d709 100644 (file)
@@ -907,7 +907,7 @@ function tag_instance_table_cleanup() {
                 FROM
                     (SELECT sq2.*
                      FROM {$CFG->prefix}tag_instance sq2
-                     LEFT JOIN {$CFG->prefix}tag item
+                     LEFT JOIN {$CFG->prefix}{$type->itemtype} item
                      ON sq2.itemid = item.id
                      WHERE item.id IS NULL
                      AND sq2.itemtype = '{$type->itemtype}')