bug fix for file icons
Foaly* [Mon, 17 Feb 2014 00:51:50 +0000 (00:51 +0000)]
function.admin_imagelist_tab.php

index 5273462..b3da26f 100644 (file)
@@ -40,7 +40,7 @@ foreach($files as $value)
        $path = str_replace($config['image_uploads_path'].'/', '', $value);
        $fileperms = substr(decoct(fileperms($value)),3);
        $entry = new StdClass;
-       $entry->icon = imagecompressor_utils::get_url_path().'/images/filetypes/'.substr($path, -3).'.png';
+       $entry->icon = imagecompressor_utils::get_url_path().'/images/filetypes/'.strtolower(substr($path, -3)).'.png';
        $entry->filename = $path;
        $entry->fileperms = is_writable($value) ? $fileperms : sprintf('<span style="color:#f00">%s</span>', $fileperms);
        $entry->filesize = imagecompressor_utils::format_bytes(filesize($value));