From b64f87a49dfba8c5144fede6d0cdef3ce8fc1b87 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 29 Jun 2024 10:03:51 +0200 Subject: [PATCH] PhotoPage: only call printNewTagScript if $allowLinkingNewTags --- templates/PhotoPage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/PhotoPage.php b/templates/PhotoPage.php index 39d6c79..b26049b 100644 --- a/templates/PhotoPage.php +++ b/templates/PhotoPage.php @@ -174,7 +174,10 @@ class PhotoPage extends Template echo ' '; - $this->printNewTagScript($tagKind, $tagListId, $newTagId); + if ($allowLinkingNewTags) + { + $this->printNewTagScript($tagKind, $tagListId, $newTagId); + } } private function printNewTagScript($tagKind, $tagListId, $newTagId)