Reviewänderungen

This commit is contained in:
2026-06-16 22:09:17 +02:00
parent 47239016c5
commit 23ccbe2d02
5 changed files with 44 additions and 8 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
<?php
session_start();
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
header("Content-Type: application/json");
+5 -5
View File
@@ -47,7 +47,7 @@ class DatabaseCommentManager implements CommentManagerDAO
}
} catch (PDOException $e) {
throw new RuntimeException("Kommentardatenbank konnte nicht erstellt werden.");
throw new RuntimeException("internal_error");
}
}
@@ -67,7 +67,7 @@ class DatabaseCommentManager implements CommentManagerDAO
return $db;
} catch (PDOException $e) {
throw new RuntimeException("Verbindung zur Kommentardatenbank fehlgeschlagen.");
throw new RuntimeException("internal_error");
}
}
@@ -135,7 +135,7 @@ class DatabaseCommentManager implements CommentManagerDAO
return intval($db->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");
}
}