commit | d9d379c1b4d674ed16edaf8167cc8f5f65becc86 | [log] [tgz] |
---|---|---|
author | Derek Allard <derek.allard@ellislab.com> | Wed May 14 21:26:35 2008 +0000 |
committer | Derek Allard <derek.allard@ellislab.com> | Wed May 14 21:26:35 2008 +0000 |
tree | 2b187d2220385ee19792bc956647f566cc5b0b33 | |
parent | b846d38da5deff9dac602a9d7dbb8e88ce14a73c [diff] [blame] |
Set the mime type check in the Upload class to reference the global mimes variable.
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 1225ee3..23e52e4 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php
@@ -821,9 +821,11 @@ */ 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);