summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-05 15:02:56 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-05 15:02:56 +0100
commitc6839de5f31baeb30f9093d7ff9a52227e3d5f05 (patch)
tree58ef19a5bedcf47bf69f5e80daa97d7a75710c0f /index.php
parent7df6634b6ca69bfae76b3e9a7531035923579580 (diff)
parente65038d04ddd17a8d77db02e5cd73feac7ae3ba1 (diff)
Merge pull request #3567 from shaffe-fr/patch-1
Fix incorrect FCPATH when a folder is named SELF
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 34addf8c3..b32723913 100755
--- a/index.php
+++ b/index.php
@@ -225,7 +225,7 @@ switch (ENVIRONMENT)
define('BASEPATH', str_replace('\\', '/', $system_path));
// Path to the front controller (this file)
- define('FCPATH', str_replace(SELF, '', __FILE__));
+ define('FCPATH', dirname(__FILE__) . '/');
// Name of the "system folder"
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));