fix bug: *.png folder display as png file

folder named as 'xxx.png' should display folder ico
This commit is contained in:
yurenhen 2016-11-18 00:41:25 +08:00
parent 5018d0a4dd
commit 2142a95ab6
1 changed files with 7 additions and 2 deletions

View File

@ -135,8 +135,13 @@ function display_block( $file )
{
global $ignore_file_list, $ignore_ext_list, $force_download;
$file_ext = getFileExt($file);
if( !$file_ext AND is_dir($file)) $file_ext = "dir";
//$file_ext = getFileExt($file);
//if( !$file_ext AND is_dir($file)) $file_ext = "dir";
if( is_dir($file))
$file_ext = "dir";
else
$file_ext = getFileExt($file);
if(in_array($file, $ignore_file_list)) return;
if(in_array($file_ext, $ignore_ext_list)) return;