Add filter (change #5) to show linked files, and files from linked entries.

This commit is contained in:
Nathan Gray 2014-10-20 18:17:31 +00:00
parent dec861fb3e
commit f3e099174d

View File

@ -463,7 +463,7 @@ class filemanager_ui
'2' => 'Directories sorted in', '2' => 'Directories sorted in',
'3' => 'Show hidden files', '3' => 'Show hidden files',
'4' => 'All subdirectories', '4' => 'All subdirectories',
'5' => 'Files from next subdirectory', '5' => 'Files from links',
'0' => 'Files from subdirectories', '0' => 'Files from subdirectories',
); );
@ -793,12 +793,13 @@ class filemanager_ui
'mindepth' => 1, 'mindepth' => 1,
'maxdepth' => $maxdepth, 'maxdepth' => $maxdepth,
'dirsontop' => $filter <= 1, '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'], 'order' => $query['order'], 'sort' => $query['sort'],
'limit' => (int)$query['num_rows'].','.(int)$query['start'], 'limit' => (int)$query['num_rows'].','.(int)$query['start'],
'need_mime' => true, 'need_mime' => true,
'name_preg' => $namefilter, 'name_preg' => $namefilter,
'hidden' => $filter == 3, 'hidden' => $filter == 3,
'follow' => $filter == 5,
),true) as $path => $row) ),true) as $path => $row)
{ {
//echo $path; _debug_array($row); //echo $path; _debug_array($row);