From f3e099174d72b55b0583f70aa5c49de093070107 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 20 Oct 2014 18:17:31 +0000 Subject: [PATCH] Add filter (change #5) to show linked files, and files from linked entries. --- filemanager/inc/class.filemanager_ui.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index 3b49a13a1d..616883ed24 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -463,7 +463,7 @@ class filemanager_ui '2' => 'Directories sorted in', '3' => 'Show hidden files', '4' => 'All subdirectories', - '5' => 'Files from next subdirectory', + '5' => 'Files from links', '0' => 'Files from subdirectories', ); @@ -793,12 +793,13 @@ class filemanager_ui 'mindepth' => 1, 'maxdepth' => $maxdepth, 'dirsontop' => $filter <= 1, - 'type' => $filter && $filter != 5 ? ($filter == 4 ? 'd' : null) : 'f', + 'type' => $filter && $filter != 5 ? ($filter == 4 ? 'd' : null) : ($filter == 5 ? 'F':'f'), 'order' => $query['order'], 'sort' => $query['sort'], 'limit' => (int)$query['num_rows'].','.(int)$query['start'], 'need_mime' => true, 'name_preg' => $namefilter, 'hidden' => $filter == 3, + 'follow' => $filter == 5, ),true) as $path => $row) { //echo $path; _debug_array($row);