Also Filter Directories

This commit is contained in:
seiichiro 2022-01-11 18:02:30 +01:00
parent aef49fb30f
commit 63602e44c9

View file

@ -71,10 +71,12 @@ if (isset($_GET['f'])) {
$tr = array('(' => '\(', ')' => '\)');
$f = strtr($_GET['f'], $tr);
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
$dirs = array_values(preg_grep('/.*'.$f.'.*/i', $dirs));
$filter='&f='.$_GET['f'];
}
}
// Sort and Reverse Filelist
natcasesort($files);
$files = array_reverse($files);