diff options
author | Andrey Andreev <narf@devilix.net> | 2013-09-13 13:45:53 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-09-13 13:45:53 +0200 |
commit | 5932a7354bf46fb0a86794af37da42f715c355bf (patch) | |
tree | 550d77b948a23c6ff06f0bd74e1dedb887898d8f /system/core/Common.php | |
parent | 838c9a96f645aac24daa31285efa1051535c4219 (diff) |
Improvements to safe_mode detection (it doesn't exist in PHP 5.4)
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index cf81e3fb5..286deccda 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -82,7 +82,7 @@ if ( ! function_exists('is_really_writable')) function is_really_writable($file) { // If we're on a Unix server with safe_mode off we call is_writable - if (DIRECTORY_SEPARATOR === '/' && (bool) @ini_get('safe_mode') === FALSE) + if (DIRECTORY_SEPARATOR === '/' && (is_php('5.4') OR (bool) @ini_get('safe_mode') === FALSE)) { return is_writable($file); } |