From d9d379c1b4d674ed16edaf8167cc8f5f65becc86 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 14 May 2008 21:26:35 +0000 Subject: Set the mime type check in the Upload class to reference the global mimes variable. --- system/libraries/Upload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system/libraries/Upload.php') diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 1225ee36b..23e52e403 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -821,9 +821,11 @@ class CI_Upload { */ function mimes_types($mime) { + global $mimes; + if (count($this->mimes) == 0) { - if (@include(APPPATH.'config/mimes'.EXT)) + if (@require_once(APPPATH.'config/mimes'.EXT)) { $this->mimes = $mimes; unset($mimes); -- cgit v1.2.3-24-g4f1b