don't show related tags block if list length is 0

git-svn-id: file:///home/shish/svn/shimmie2/trunk@128 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-05-23 22:06:32 +00:00
parent 593f7d55de
commit 6bbe00304b

View file

@ -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')) {