mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Bugtracker #5259 possible fix - always look for lower case file type icon name
This commit is contained in:
parent
192a6a77e3
commit
d11f845fa9
@ -345,9 +345,11 @@ while ($dirs[$c]) {
|
||||
}
|
||||
|
||||
$c = 0;
|
||||
while ($files[$c]) {
|
||||
$img = substr(strrchr($files[$c], "."), 1, 3);
|
||||
if (!$img || !preg_match("/css|exe|gif|htm|jpg|js|php|png|txt|xml|zip/i", $img)) {
|
||||
while ($files[$c])
|
||||
{
|
||||
$img = strtolower(substr(strrchr($files[$c], "."), 1, 3));
|
||||
if (!$img || !preg_match("/css|exe|gif|htm|jpg|js|php|png|txt|xml|zip/i", $img))
|
||||
{
|
||||
$img = "def";
|
||||
}
|
||||
$size = $e107->parseMemorySize(filesize(e_BASE.$path."/".$files[$c]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user