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. +

+ + +

+ Dein Beitrag wurde erfolgreich bearbeitet! +

+ + + + +
@@ -52,13 +79,18 @@ if (isset($_GET["id"])) {
+ +
+
+ +
@@ -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"); } }