summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2009-03-06 23:31:19 +0100
committerRick Ellis <rick.ellis@ellislab.com>2009-03-06 23:31:19 +0100
commit7523ef1012514bb382b06f2169b4b419b4ed0e7d (patch)
treea0819549269141172233203dae3b49954218aa36
parent6559ec305aeddf5fc13b2c0b460d7c22e8ded191 (diff)
Removed the "index.php" portion from the FCPATH constant, as it was not needed.
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 39aeda5c9..bac85d9a5 100644
--- a/index.php
+++ b/index.php
@@ -79,15 +79,15 @@ else
|---------------------------------------------------------------
|
| EXT - The file extension. Typically ".php"
-| FCPATH - The full server path to THIS file
| SELF - The name of THIS file (typically "index.php")
+| FCPATH - The full server path to THIS file
| BASEPATH - The full server path to the "system" folder
| APPPATH - The full server path to the "application" folder
|
*/
define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
-define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
+define('FCPATH', str_replace(SELF, '', __FILE__));
define('BASEPATH', $system_folder.'/');
if (is_dir($application_folder))