Update file news.php
This commit is contained in:
parent
bd2ac201d0
commit
d50e8d9530
@ -65,6 +65,8 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
|||||||
echo "<div class='article-titre'>" . $row['titre'] . "</div></a>";
|
echo "<div class='article-titre'>" . $row['titre'] . "</div></a>";
|
||||||
echo "<div class='article-date'>" . date('d/m/Y', $date) . "</div></div>";
|
echo "<div class='article-date'>" . date('d/m/Y', $date) . "</div></div>";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
echo "Aucun article trouvé";
|
||||||
}
|
}
|
||||||
} else if (!isset($_GET['search']) && $article != "" && file_exists('/var/www/e59/content/journal/' . $article . '.md')) {
|
} else if (!isset($_GET['search']) && $article != "" && file_exists('/var/www/e59/content/journal/' . $article . '.md')) {
|
||||||
$markdownContent = file_get_contents('/var/www/e59/content/journal/' . $article . '.md');
|
$markdownContent = file_get_contents('/var/www/e59/content/journal/' . $article . '.md');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user