diff options
author | Charly Faille <shaffe.fr@gmail.com> | 2015-02-05 14:56:33 +0100 |
---|---|---|
committer | Charly Faille <shaffe.fr@gmail.com> | 2015-02-05 14:56:33 +0100 |
commit | e65038d04ddd17a8d77db02e5cd73feac7ae3ba1 (patch) | |
tree | 361ac71bd82f52c8b52296a1858cb42484b9312c /index.php | |
parent | fa76607c7b5e5414b50680be512dd23920f52e9b (diff) |
Fix incorrect FCPATH when a folder is named SELF
If code igniter is located inside a folder named like SELF (eg. index.php), the FCPATH constant will have an incorrect value.
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, '/'), '/'), '/')); |