Merge pull request #6 from yurenchen000/master

fix bug:  *.png folder display as png file
This commit is contained in:
Hal Gatewood 2016-11-17 10:45:36 -06:00 committed by GitHub
commit 41f0cee39e

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;