Anzeigenamen #51

Merged
niklas.ortmann merged 10 commits from AnzeigeNamen into dev 2026-07-17 18:09:30 +02:00
Showing only changes of commit c09c7ecfa3 - Show all commits
@@ -5,6 +5,7 @@ if (session_status() === PHP_SESSION_NONE) {
require_once 'php/model/Article.php';
require_once 'php/model/ArticleManager.php';
require_once 'php/model/UserManager.php';
require_once 'php/model/CommentManager.php';
if (isset($_GET["id"]) && !empty($_GET["id"])){
@@ -19,6 +20,9 @@ if (isset($_GET["id"]) && !empty($_GET["id"])){
$author = $article->getAuthor();
$tags = $article->getTags();
$articleObj = $article; // Objekt für die Like-Abfagen sichern
$userManager = UserManager::getInstance();
$name = $userManager->findUser($author)["vorname"];
}else{
//header("location: index.php?pfad=404");
include_once "content/404.php";