mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +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())
|
while($row = $sql->fetch())
|
||||||
{
|
{
|
||||||
$suffix = strrchr($row['download_url'], ".");
|
$ext = strrchr($row['download_url'], ".");
|
||||||
$allowed_types[] = ltrim($suffix,".");
|
$suffix = ltrim($ext,".");
|
||||||
|
|
||||||
|
if(!isset($allowed_types[$suffix]))
|
||||||
|
{
|
||||||
|
$allowed_types[$suffix] = $suffix;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$allowed_types = array_unique($allowed_types);
|
$allowed_types = array_unique($allowed_types);
|
||||||
|
Reference in New Issue
Block a user