summaryrefslogtreecommitdiffstats
path: root/system/codeigniter
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-04-04 20:56:04 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-04-04 20:56:04 +0200
commit3ad8efe07deb3ec27a205815dc9097c20c728e9b (patch)
treed2d699b7173505ef6ce317cd0856fa5b03e6aae1 /system/codeigniter
parent1ea127ae8a8026af7679526af06ff297d5104104 (diff)
added constants.php file and implemented constants for file system modes
Diffstat (limited to 'system/codeigniter')
-rw-r--r--system/codeigniter/CodeIgniter.php9
-rw-r--r--system/codeigniter/Common.php2
2 files changed, 9 insertions, 2 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 866be35cc..04936b956 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -43,7 +43,14 @@ require(BASEPATH.'codeigniter/Common'.EXT);
* ------------------------------------------------------
*/
require(BASEPATH.'codeigniter/Compat'.EXT);
-
+
+/*
+ * ------------------------------------------------------
+ * Load the compatibility override functions
+ * ------------------------------------------------------
+ */
+require(APPPATH.'config/constants'.EXT);
+
/*
* ------------------------------------------------------
* Define a custom error handler so we can log PHP errors
diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php
index d9ddf80c7..4554a712b 100644
--- a/system/codeigniter/Common.php
+++ b/system/codeigniter/Common.php
@@ -52,7 +52,7 @@ function is_really_writable($file)
}
fclose($fp);
- @chmod($file, 0777);
+ @chmod($file, DIR_WRITE_MODE);
@unlink($file);
return TRUE;
}