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:
parent
593f7d55de
commit
6bbe00304b
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,10 @@ class TagList extends Extension {
|
||||||
|
|
||||||
if(is_a($event, 'DisplayingImageEvent')) {
|
if(is_a($event, 'DisplayingImageEvent')) {
|
||||||
global $page;
|
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')) {
|
if(is_a($event, 'SetupBuildingEvent')) {
|
||||||
|
|
Reference in a new issue