mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Code optimization for speed and reduced memory usage.
This commit is contained in:
@@ -631,7 +631,7 @@ function get_image_mime($filename, $extended = false)
|
||||
// Otherwise, it could be in the supplementary list
|
||||
|
||||
$tmp = explode(',', $unknown);
|
||||
for($i = 0; $i < count($tmp); $i++)
|
||||
for($i = 0, $iMax = count($tmp); $i < $iMax; $i++)
|
||||
{
|
||||
$tmp[$i] = strtolower(trim(str_replace('.', '', $tmp[$i])));
|
||||
}
|
||||
|
Reference in New Issue
Block a user