Compare commits
2 Commits
a6210c9d6e
...
d18f33a87a
| Author | SHA1 | Date | |
|---|---|---|---|
| d18f33a87a | |||
| 62190fa821 |
@@ -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"): ?>
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user