diff options
author | Andrey Andreev <narf@devilix.net> | 2015-02-05 15:02:56 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-02-05 15:02:56 +0100 |
commit | c6839de5f31baeb30f9093d7ff9a52227e3d5f05 (patch) | |
tree | 58ef19a5bedcf47bf69f5e80daa97d7a75710c0f /index.php | |
parent | 7df6634b6ca69bfae76b3e9a7531035923579580 (diff) | |
parent | e65038d04ddd17a8d77db02e5cd73feac7ae3ba1 (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-x | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, '/'), '/'), '/')); |