From 9f1ca1556a97aee0c7f203c717d37a8d90563070 Mon Sep 17 00:00:00 2001 From: Danang Probo Sayekti Date: Sat, 11 Jan 2014 09:05:48 +0700 Subject: [PATCH] Re-order static folder Static content is global and not per user base. --- content/{admin => }/static/about.md | 0 content/{admin => }/static/contact.md | 0 system/includes/functions.php | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename content/{admin => }/static/about.md (100%) rename content/{admin => }/static/contact.md (100%) diff --git a/content/admin/static/about.md b/content/static/about.md similarity index 100% rename from content/admin/static/about.md rename to content/static/about.md diff --git a/content/admin/static/contact.md b/content/static/contact.md similarity index 100% rename from content/admin/static/contact.md rename to content/static/contact.md diff --git a/system/includes/functions.php b/system/includes/functions.php index a4b342c..fed81f7 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -31,9 +31,9 @@ function get_spage_names(){ if(empty($_cache)){ // Get the names of all the - // static page (newest first): + // static page. - $_cache = glob('content/*/static/*.md', GLOB_NOSORT); + $_cache = glob('content/static/*.md', GLOB_NOSORT); } return $_cache; @@ -47,7 +47,7 @@ function get_author_names(){ if(empty($_cache)){ // Get the names of all the - // author: + // author. $_cache = glob('content/*/author.md', GLOB_NOSORT); }