From 61568b4595ba769ee564cc23d26ae6cf4a1ac63f Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 30 Oct 2021 01:11:59 +0200 Subject: [PATCH] Hide hidden folders like ".git" in the navigation --- system/Models/Folder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Models/Folder.php b/system/Models/Folder.php index 201668c..a4c6c22 100644 --- a/system/Models/Folder.php +++ b/system/Models/Folder.php @@ -48,7 +48,7 @@ class Folder foreach ($folderItems as $key => $item) { - if (!in_array($item, array(".",".."))) + if (!in_array($item, array(".","..")) && substr($item, 0, 1) != '.') { if (is_dir($folderPath . DIRECTORY_SEPARATOR . $item)) {