mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 08:52:23 +02:00
Corrected exclude items.
This commit is contained in:
parent
fb5a5af816
commit
a377625751
|
@ -2498,7 +2498,12 @@ function fm_get_parent_path($path)
|
||||||
*/
|
*/
|
||||||
function fm_is_exclude_items($file) {
|
function fm_is_exclude_items($file) {
|
||||||
$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
|
$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
|
||||||
if(!in_array($file, FM_EXCLUDE_ITEMS) && !in_array("*.$ext", FM_EXCLUDE_ITEMS)) {
|
|
||||||
|
$exclude_items = FM_EXCLUDE_ITEMS;
|
||||||
|
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
|
||||||
|
$exclude_items = unserialize($exclude_items);
|
||||||
|
}
|
||||||
|
if (!in_array($file, $exclude_items) && !in_array("*.$ext", $exclude_items)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue