mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-03 14:23:14 +02:00
check file extension contains .min
This commit is contained in:
parent
313acf1b78
commit
359b05289f
|
@ -2464,6 +2464,12 @@ function fm_is_exclude_items($file) {
|
|||
$exclude_items = unserialize($exclude_items);
|
||||
}
|
||||
if (!in_array($file, $exclude_items) && !in_array("*.$ext", $exclude_items)) {
|
||||
|
||||
//check .min.
|
||||
if( false !== strpos( $file, '.min.') && in_array("*.min.$ext", FM_EXCLUDE_ITEMS) ){
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue