cleaned up last commit to single line if statement
This commit is contained in:
parent
41f0cee39e
commit
624160327a
@ -135,13 +135,7 @@ function display_block( $file )
|
|||||||
{
|
{
|
||||||
global $ignore_file_list, $ignore_ext_list, $force_download;
|
global $ignore_file_list, $ignore_ext_list, $force_download;
|
||||||
|
|
||||||
//$file_ext = getFileExt($file);
|
$file_ext = is_dir($file) ? "dir" : 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, $ignore_file_list)) return;
|
||||||
if(in_array($file_ext, $ignore_ext_list)) return;
|
if(in_array($file_ext, $ignore_ext_list)) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user