Skip to content

Commit

Permalink
Patch extension to #370
Browse files Browse the repository at this point in the history
  • Loading branch information
olape-git committed Dec 21, 2020
1 parent 3dfd041 commit e3cc319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filebrowser/classes/View.php
Expand Up @@ -178,7 +178,7 @@ public function folderLink($folder, array $folders)
. XH_hsc($this->linkParams) . '&amp;subdir=' . $folder . '"><span class="fa fa-' . $fa_class . ' fa-fw fa-lg"></span> '
. end($temp) . '</a>';
if (count($folders[$folder]['children']) > 0) {
if (substr($this->currentDirectory, 0, strlen($folder)) !== $folder) {
if (substr($this->currentDirectory, 0, strlen("$folder/")) !== "$folder/") {
$class = 'unseen';
}

Expand Down

0 comments on commit e3cc319

Please sign in to comment.