diff --git a/lib/meme.php b/lib/meme.php index c0f62cb..fcf0650 100644 --- a/lib/meme.php +++ b/lib/meme.php @@ -16,7 +16,7 @@ function addMeme(string $memeText, int $imageID): bool function renderMeme(string $title, string $textContent, string $createdAt, string $filePath, string $userNickname): string { global $routerConfig; - $meme_template = file_get_contents($routerConfig->template_dir . "meme.html"); + $meme_template = file_get_contents($routerConfig['template_dir'] . "meme.html"); $meme_out = str_replace('__TEMPLATE_MEME_TITLE__', htmlspecialchars($title), $meme_template); $meme_out = str_replace('__TEMPLATE_MEME_AUTHOR__', htmlspecialchars($userNickname), $meme_out);