summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
authorEric Barnes <eric@ericlbarnes.com>2011-03-18 14:02:37 +0100
committerEric Barnes <eric@ericlbarnes.com>2011-03-18 14:02:37 +0100
commit928083406322821a35a7d8a4205620c3854772a6 (patch)
treeeed53a5207649e137b82853bfb675896adbe795c /system/libraries/Upload.php
parentbb458e3b9189af409d342623a9873397a1ac92c2 (diff)
Fixed coding to match standards from previous releases
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r--system/libraries/Upload.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 24189f4b4..e8e47a194 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -142,7 +142,7 @@ class CI_Upload {
*/
public function do_upload($field = 'userfile')
{
-
+
// Is $_FILES[$field] set? If not, no reason to continue.
if ( ! isset($_FILES[$field]))
{
@@ -953,13 +953,13 @@ class CI_Upload {
{
if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes'.EXT))
{
- $_mimes_path = APPPATH.'config/'.ENVIRONMENT.'/mimes'.EXT;
+ $_mimes_path = APPPATH.'config/'.ENVIRONMENT.'/mimes'.EXT;
}
else
{
$_mimes_path = APPPATH.'config/mimes'.EXT;
}
-
+
if (@require($_mimes_path))
{
$this->mimes = $mimes;