summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index bb6cfa9..5e5e92d 100644
--- a/index.php
+++ b/index.php
@@ -3,8 +3,8 @@ include('./includes/head.php');
$page = strtok($_SERVER['REQUEST_URI'], '/');
-if (!empty($page) && $page == "posts" && ($post = strtok('/')) && !empty($post)) {
- include("./posts/$post.php");
+if (!empty($page) && $page[0] >= '0' && $page[0] <= '9') {
+ include("./posts/$page.php");
} else if (!empty($page)) {
include("./pages/$page.php");
} else {