Test meme voting

This commit is contained in:
Bruno Rybársky 2024-04-27 10:32:07 +02:00
parent cd487d155c
commit 9fe7eb14e9

@ -63,6 +63,7 @@ function renderMemeGallery(): string
// Fetch the results // Fetch the results
$memes_out = ''; $memes_out = '';
$meme_template = file_get_contents($routerConfig['template_dir'] . "meme.html"); $meme_template = file_get_contents($routerConfig['template_dir'] . "meme.html");
$stmtlist->store_result();
while ($stmtlist->fetch()) { while ($stmtlist->fetch()) {
if (str_starts_with($fileType, 'image')) { if (str_starts_with($fileType, 'image')) {
$memes_out .= renderMeme($memeID, $authorID, $title, $textContent, $createdAt, $filePath, $userNickname, $meme_template); $memes_out .= renderMeme($memeID, $authorID, $title, $textContent, $createdAt, $filePath, $userNickname, $meme_template);