mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Remove unneeded feature
This commit is contained in:
parent
69d59f28ff
commit
494874bdc6
@ -632,14 +632,10 @@ function vet_file($filename, $target_name, $allowed_filetypes = '', $unknown = F
|
||||
$a_filetypes = trim(file_get_contents(e_ADMIN.$def_file));
|
||||
$a_filetypes = explode(',', $a_filetypes);
|
||||
}
|
||||
else
|
||||
{ // Its an 'override' array
|
||||
$a_filetypes = explode(',', $def_file);
|
||||
}
|
||||
foreach ($a_filetypes as $ftype)
|
||||
{
|
||||
$ftype = strtolower(trim(str_replace('.', '', $ftype)));
|
||||
if (!$file_mask || in_array($ftype, $file_array))
|
||||
if ($ftype && (!$file_mask || in_array($ftype, $file_array)))
|
||||
{
|
||||
$ret[$ftype] = -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user