From 6e824ffafd51d44c54abdc47438924dd2192e11f Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 25 Apr 2024 09:45:40 +0200 Subject: [PATCH] Test meme rendering --- lib/meme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);