diff options
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Upload.php | 4 |
1 files changed, 3 insertions, 1 deletions
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);
|