1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 09:36:29 +02:00

more right way to get filename

This commit is contained in:
Dmitriy Novash
2022-06-09 19:20:04 +03:00
parent ac67994b72
commit 49c42b635e

View File

@@ -1141,8 +1141,8 @@ f00bar;
$tmp_d = $dir;
$tmp_missing_parts = [];
while (realpath($tmp_d) === false) {
$tmp_i = pathinfo($tmp_d);
array_push($tmp_missing_parts, $tmp_i['filename']);
$tmp_i = pathinfo($tmp_d, PATHINFO_FILENAME);
array_push($tmp_missing_parts, $tmp_i);
$tmp_d = dirname($tmp_d);
if ($tmp_d == dirname($tmp_d))
break;