aboutsummaryrefslogtreecommitdiff
path: root/includes/blog/home.php
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-07-27 04:47:58 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-07-27 04:47:58 +0200
commitb028da9fea70c65ccd52d1d478859739027d756a (patch)
treef6ad05f4313499ebd84c2afd26320217b18ad04f /includes/blog/home.php
parentaf9e5ef458b93ef2003905e1ccc5665e7266c242 (diff)
downloadmain-b028da9fea70c65ccd52d1d478859739027d756a.tar.gz
main-b028da9fea70c65ccd52d1d478859739027d756a.tar.bz2
main-b028da9fea70c65ccd52d1d478859739027d756a.zip
Commmmmmit
Diffstat (limited to 'includes/blog/home.php')
-rw-r--r--includes/blog/home.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/blog/home.php b/includes/blog/home.php
index 162babc..a515c14 100644
--- a/includes/blog/home.php
+++ b/includes/blog/home.php
@@ -3,6 +3,7 @@
$articles = scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data");
$i = 1;
+ $articles = array_reverse($articles);
foreach ($articles as $article):
?>
@@ -19,6 +20,6 @@
<a href="/blog/article-<?= explode(".", $article)[0] ?>" class="card-link"><?= l("Read more...", "Lire plus...") ?></a>
</div>
</div>
- <?php endif;$i++; ?>
+ <?php $i++;endif; ?>
<?php endforeach; ?>
</div> \ No newline at end of file