Beitragseditor funktioniert mit und ohne JS (+Bilder löschen) #57

Merged
niklas.ortmann merged 9 commits from BeitragseditorOhneJS into dev 2026-07-19 13:45:33 +02:00
Showing only changes of commit 4b84f0ab09 - Show all commits
+2 -2
View File
@@ -9,7 +9,7 @@ require_once '../model/Article.php';
require_once '../validator/article-validator.php';
require_once '../../includes/article-block-helper.php';
if (!isset($_SESSION["user_email"])) {
if (!isset($_SESSION["user"])) {
header("Location: index.php?pfad=login");
exit();
}
@@ -71,7 +71,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
}
$_SESSION["old_content"] = json_encode($blocks, JSON_UNESCAPED_UNICODE);
header("location: ../../content/updateArticle.php?id=$id");
header("location: ../../index.php?pfad=updateArticle&id=$id");
exit();
}