Skip to content

Commit

Permalink
merge upstream changes to /ext/tag_list + re-add checks if user is lo…
Browse files Browse the repository at this point in the history
…gged in - fixes #30
  • Loading branch information
Giraffaman committed Feb 24, 2024
1 parent d568d37 commit a5cdb89
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ext/tag_list/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit a5cdb89

Please sign in to comment.