From e7e54aa96806d55204812f9e6ca5fa06e2943fa2 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 28 Nov 2009 13:47:25 -0500 Subject: Organized blog module Previously, welcome.php was always loaded if no module was specified. Because of this, the index page blog section was there, while the rest of the blog code (plus archive code) was in blog.php. Now, the all of the blog is in blog.php and all of the archive is in archive.php. --- includes/functions.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/functions.php b/includes/functions.php index dc5a549..efb3c13 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -398,6 +398,14 @@ function getRewriteURL() } } else { if ($_GET['area'] == 'blog') + { + if (isset($_GET['post'])) + { + return '/blog/' . $_GET['post'] . '/'; + } else { + return '/'; + } + } else if ($_GET['area'] == 'archive') { if (isset($_GET['author'])) { @@ -405,9 +413,6 @@ function getRewriteURL() } else if (isset($_GET['tag'])) { return '/blog/tag/' . $_GET['tag'] . '.php'; - } else if (isset($_GET['post'])) - { - return '/blog/' . $_GET['post'] . '/'; } else { return '/blog/'; } -- cgit 1.4.1