This commit is contained in:
2026-07-19 20:10:51 +02:00
parent d7d121b541
commit 5eca2f162b
4 changed files with 56 additions and 28 deletions
+20 -10
View File
@@ -251,11 +251,23 @@ if ($replyAuthor === null) {
(string) $comment->getArticleId()
); ?>">
<button type="submit"
class="delete-comment-button"
onclick="return confirm('Möchtest du diesen Kommentar wirklich löschen?');">
Kommentar löschen
</button>
<form method="post"
action="index.php?pfad=deleteComment"
class="delete-comment-form confirm-delete-comment">
<input type="hidden"
name="comment_id"
value="<?php echo htmlspecialchars((string) $comment->getId()); ?>">
<input type="hidden"
name="article_id"
value="<?php echo htmlspecialchars((string) $comment->getArticleId()); ?>">
<button type="submit"
class="delete-comment-button">
Kommentar löschen
</button>
</form>
</form>
<?php endif; ?>
@@ -383,11 +395,9 @@ if ($replyAuthor === null) {
(string) $reply->getArticleId()
); ?>">
<button type="submit"
class="delete-comment-button"
onclick="return confirm('Möchtest du diesen Kommentar wirklich löschen?');">
Kommentar löschen
</button>
<form method="post"
action="index.php?pfad=deleteComment"
class="delete-comment-form confirm-delete-comment">
</form>
<?php endif; ?>