[VD:MySQL] include info "path" into search result

This commit is contained in:
nao-pon
2016-01-12 22:45:44 +09:00
parent 4a619a43aa
commit 357122c20f
+2 -1
View File
@@ -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'];
}
/**