diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index abf023cd..cc279939 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -39,7 +39,10 @@ class TagList extends Extension { if(is_a($event, 'DisplayingImageEvent')) { global $page; - $page->add_side_block(new Block("Related Tags", $this->get_related_tags($event->get_image())), 60); + global $config; + if($config->get_int('tag_list_length') > 0) { + $page->add_side_block(new Block("Related Tags", $this->get_related_tags($event->get_image())), 60); + } } if(is_a($event, 'SetupBuildingEvent')) {