summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
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 47f1ae9ee..fa34c6514 100644
--- a/index.php
+++ b/index.php
@@ -134,7 +134,7 @@
define('FCPATH', str_replace(SELF, '', __FILE__));
// Name of the "system folder"
- define('SYSDIR', end(explode('/', trim(BASEPATH, '/'))));
+ define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
// The path to the "application" folder