mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:MySQL] include info "path" into search result
This commit is contained in:
@@ -367,6 +367,7 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
|
||||
if ($row['parent_id']) {
|
||||
$row['phash'] = $this->encode($row['parent_id']);
|
||||
}
|
||||
$row['path'] = $this->_path($id);
|
||||
|
||||
if ($row['mime'] == 'directory') {
|
||||
unset($row['width']);
|
||||
@@ -481,7 +482,7 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
|
||||
$dir = $this->stat($id);
|
||||
$path .= $dir['name'].$this->separator;
|
||||
}
|
||||
return $path.$file['name'];
|
||||
return $this->rootName.$this->separator.$path.$file['name'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user