diff --git a/ext/tag_list/main.php b/ext/tag_list/main.php index cc94aaf08..2ab48de96 100644 --- a/ext/tag_list/main.php +++ b/ext/tag_list/main.php @@ -51,9 +51,9 @@ public function onPageRequest(PageRequestEvent $event): void global $config; $tags_min = $config->get_int(TagListConfig::TAGS_MIN); // get the default. } + if($user->is_logged_in()) { - - switch ($sub) { + switch ($sub) { default: case 'map': $this->theme->set_heading("Tag Map"); @@ -120,9 +120,6 @@ public function onDisplayingImage(DisplayingImageEvent $event): void $this->add_tags_block($page, $event->image); } } - if ($type == TagListConfig::TYPE_RELATED || $type == TagListConfig::TYPE_BOTH) { - $this->add_related_block($page, $event->image); - } } } }