From 23ccbe2d02d7b074078963dff3c6a0f39fa090b8 Mon Sep 17 00:00:00 2001
From: Caroline Schulte
Date: Tue, 16 Jun 2026 22:09:17 +0200
Subject: [PATCH] =?UTF-8?q?Review=C3=A4nderungen?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
content/showArticle.php | 33 ++++++++++++++++++++++++++++
css/showArticle.css | 4 ++--
index.php | 1 +
php/ajax/add-comment.php | 4 +++-
php/model/DatabaseCommentManager.php | 10 ++++-----
5 files changed, 44 insertions(+), 8 deletions(-)
diff --git a/content/showArticle.php b/content/showArticle.php
index 5c9e5dc..fc8502e 100644
--- a/content/showArticle.php
+++ b/content/showArticle.php
@@ -24,6 +24,11 @@ if (isset($_GET["id"])) {
}
}
?>
+
+
@@ -32,8 +37,30 @@ if (isset($_GET["id"])) {
+
+
+ Es ist ein Fehler aufgetreten. Die ID konnte nicht ausgelesen werden. Bitte versuche es erneut.
+
+
+
+
+
+ Jeder Beitrag muss einen Titel, Kategorie und Inhalt besitzen.
+
+
+
+
@@ -66,6 +98,7 @@ if (isset($_GET["id"])) {
+
EduForge
diff --git a/php/ajax/add-comment.php b/php/ajax/add-comment.php
index 95a59e7..b2c14b9 100644
--- a/php/ajax/add-comment.php
+++ b/php/ajax/add-comment.php
@@ -1,5 +1,7 @@
lastInsertId());
} catch (PDOException $e) {
- throw new RuntimeException("Kommentar konnte nicht gespeichert werden.");
+ throw new RuntimeException("internal_error");
}
}
@@ -175,7 +175,7 @@ class DatabaseCommentManager implements CommentManagerDAO
return $this->mapRowsToComments($command);
} catch (PDOException $e) {
- throw new RuntimeException("Kommentare konnten nicht geladen werden.");
+ throw new RuntimeException("internal_error");
}
}
@@ -215,7 +215,7 @@ class DatabaseCommentManager implements CommentManagerDAO
return $this->mapRowsToComments($command);
} catch (PDOException $e) {
- throw new RuntimeException("Kommentare konnten nicht geladen werden.");
+ throw new RuntimeException("internal_error");
}
}