Compare commits

...

2 Commits

Author SHA1 Message Date
niklas.ortmann d18f33a87a Update showArticle-controller.php 2026-06-01 12:17:11 +02:00
niklas.ortmann 62190fa821 Update showArticle.php 2026-06-01 12:17:10 +02:00
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -1,12 +1,11 @@
<?php
include_once 'php/controller/showArticle-controller.php';
?>
<!--
Seite: Anzeige für Beiträge
Funktion: Stellt einen übergebenen Beitrag dar.
-->
<?php
include_once 'php/controller/showArticle-controller.php';
?>
<!-- Hauptcontainer für die Beitragsansicht (Ausschließlich der Content-Bereich) -->
<main class="article-view-container">
<?php if (isset($_SESSION["message"]) && $_SESSION["message"] == "internal_error"): ?>
+2 -2
View File
@@ -16,12 +16,12 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){
$tags = $article->getTags();
}else{
echo "Test";
header("Location: index.php?pfad=404");
header("location: index.php?pfad=404");
exit();
}
} catch (Exception $e){
$_SESSION["message"] = "internal_error";
header("location: ../../index.php?pfad=showArticle");
header("location: index.php?pfad=showArticle");
exit();
}
}else{