summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-12-11 16:13:38 -0500
committer53hornet <atc@53hor.net>2021-12-11 16:13:38 -0500
commit69cf2d0ab47f0389ee7dbc594d99db0e99c2c63c (patch)
tree2b4be510f6a0f6d6b1cf4a34204755d5a3b09cc9 /index.php
parent59ca721c6aa954bb3cd3c7511893a3080d8df832 (diff)
download53hor-69cf2d0ab47f0389ee7dbc594d99db0e99c2c63c.tar.xz
53hor-69cf2d0ab47f0389ee7dbc594d99db0e99c2c63c.zip
fix: pages posts mixup and 404s
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 4cbfc09..3387ef9 100644
--- a/index.php
+++ b/index.php
@@ -8,7 +8,7 @@ if (empty($page)) {
include('./includes/render_index.php');
} else if (!empty($page) && $page[0] >= '0' && $page[0] <= '9' && is_readable("./posts/$page.php")) {
include("./posts/$page.php");
-} else if (!empty($page) && is_readable("./posts/$page.php")) {
+} else if (!empty($page) && is_readable("./pages/$page.php")) {
include("./pages/$page.php");
} else {
include('./includes/404.php');