summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2011-09-26 09:27:25 +0200
committerAndrey Andreev <narf@bofh.bg>2011-09-26 09:27:25 +0200
commitf300fb27a54c4eb6018dffb77a5e541416ffa5c2 (patch)
treebff6ef6c62c54236e8cdbc512f492917729c23c5 /system/libraries/Upload.php
parent2cec39f2c221d2acab5dbd830b6dd64db01b24d9 (diff)
Use CI's is_php() instead of comparing against phpversion()
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r--system/libraries/Upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 67551fbbd..fc3de0329 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -1021,7 +1021,7 @@ class CI_Upload {
protected function _file_mime_type($file)
{
// Use if the Fileinfo extension, if available (only versions above 5.3 support the FILEINFO_MIME_TYPE flag)
- if ( (float) substr(phpversion(), 0, 3) >= 5.3 && function_exists('finfo_file'))
+ if (is_php('5.3') && function_exists('finfo_file'))
{
$finfo = new finfo(FILEINFO_MIME_TYPE);
if ($finfo !== FALSE) // This is possible, if there is no magic MIME database file found on the system