From 224f9ee5014ae5c5399188afd8d38e3b620e2856 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 26 Nov 2009 14:21:20 -0500 Subject: Added Fouripedia compatibility Made many strutural changes to Four Island allowing for the reinclusion of Fouripedia. --- includes/functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes/functions.php') diff --git a/includes/functions.php b/includes/functions.php index bc839df..dc5a549 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -390,7 +390,12 @@ function getRewriteURL() { if (!isset($_GET['area'])) { - return '/'; + if (strpos($_SERVER['PHP_SELF'], 'wiki') !== false) + { + return $_SERVER['PHP_SELF']; + } else { + return '/'; + } } else { if ($_GET['area'] == 'blog') { -- cgit 1.4.1