Upgrade to CodeIgniter 2.0.3
This commit is contained in:
@@ -945,13 +945,13 @@ class CI_Upload {
|
||||
|
||||
if (count($this->mimes) == 0)
|
||||
{
|
||||
if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes'.EXT))
|
||||
if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))
|
||||
{
|
||||
include(APPPATH.'config/'.ENVIRONMENT.'/mimes'.EXT);
|
||||
include(APPPATH.'config/'.ENVIRONMENT.'/mimes.php');
|
||||
}
|
||||
elseif (is_file(APPPATH.'config/mimes'.EXT))
|
||||
elseif (is_file(APPPATH.'config/mimes.php'))
|
||||
{
|
||||
include(APPPATH.'config//mimes'.EXT);
|
||||
include(APPPATH.'config//mimes.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user