getArticle($id); $article->setTitle($newTitle); $article->setContent($newContent); $article->setCategory($newCategory); $article->setTags($newTags); $articleManager->updateArticle($id ,$article, $author); } catch (Exception $e){ $_SESSION["message"] = "internal_error"; } $_SESSION["message"] = "article_updated"; // Weiterleitung zur Homepage header("location: ../../index.php?pfad=showArticle&id=$id"); } exit(); } ?>