Add trailing slash to directory links
This commit is contained in:
parent
4532d43aeb
commit
bd4d46013f
@ -1301,10 +1301,11 @@ word-break: break-all;
|
||||
foreach ($files as $f) {
|
||||
if (strpos($f, '.') !== 0 && !in_array($f, $IGNORE)) {
|
||||
echo "<li class=\"list-group-item d-flex\">\n";
|
||||
echo "\t<a href=\"$path$f\">";
|
||||
if (is_dir($dir . "/" . $f)) {
|
||||
echo "\t<a href=\"$path$f/\">";
|
||||
echo "<span class=\"fas fa-folder fa-fw\"></span> ";
|
||||
} else {
|
||||
echo "\t<a href=\"$path$f\">";
|
||||
$icon = "fas fa-file";
|
||||
$extension = strtolower(pathinfo("$dir/$f")['extension']);
|
||||
// If we don't have an extension, try using the whole filename
|
||||
|
Loading…
x
Reference in New Issue
Block a user