diff --git a/ext/tag_editcloud/main.php b/ext/tag_editcloud/main.php index 56a5ec51..a1e790d0 100644 --- a/ext/tag_editcloud/main.php +++ b/ext/tag_editcloud/main.php @@ -71,6 +71,14 @@ class TagEditCloud extends Extension { $ignore_tags = explode(' ',$config->get_string("tageditcloud_ignoretags")); + if(class_exists("TagCategories")){ + $categories = $database->get_all("SELECT category, color FROM image_tag_categories"); + $cat_color = array(); + foreach($categories as $row){ + $cat_color[$row['category']] = $row['color']; + } + } + switch($sort_method){ case 'a': case 'p': @@ -93,19 +101,34 @@ class TagEditCloud extends Extension { $cloud .= "