From e65038d04ddd17a8d77db02e5cd73feac7ae3ba1 Mon Sep 17 00:00:00 2001 From: Charly Faille Date: Thu, 5 Feb 2015 14:56:33 +0100 Subject: 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. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') 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, '/'), '/'), '/')); -- cgit v1.2.3-24-g4f1b