mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Bugtracker #5259 possible fix - always look for lower case file type icon name
This commit is contained in:
@@ -345,9 +345,11 @@ while ($dirs[$c]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$c = 0;
|
$c = 0;
|
||||||
while ($files[$c]) {
|
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)) {
|
$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";
|
$img = "def";
|
||||||
}
|
}
|
||||||
$size = $e107->parseMemorySize(filesize(e_BASE.$path."/".$files[$c]));
|
$size = $e107->parseMemorySize(filesize(e_BASE.$path."/".$files[$c]));
|
||||||
|
Reference in New Issue
Block a user