PhotoPage: only call printNewTagScript if $allowLinkingNewTags

This commit is contained in:
Aaron van Geffen 2024-06-29 10:03:51 +02:00
parent ead4240173
commit b64f87a49d

View File

@ -174,7 +174,10 @@ class PhotoPage extends Template
echo '
</ul>';
$this->printNewTagScript($tagKind, $tagListId, $newTagId);
if ($allowLinkingNewTags)
{
$this->printNewTagScript($tagKind, $tagListId, $newTagId);
}
}
private function printNewTagScript($tagKind, $tagListId, $newTagId)