mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Issue #591 - Optimize downloads import
This commit is contained in:
@@ -1526,8 +1526,14 @@ function update_706_to_800($type='')
|
||||
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$suffix = strrchr($row['download_url'], ".");
|
||||
$allowed_types[] = ltrim($suffix,".");
|
||||
$ext = strrchr($row['download_url'], ".");
|
||||
$suffix = ltrim($ext,".");
|
||||
|
||||
if(!isset($allowed_types[$suffix]))
|
||||
{
|
||||
$allowed_types[$suffix] = $suffix;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$allowed_types = array_unique($allowed_types);
|
||||
|
Reference in New Issue
Block a user