src build elFinder-2.1-2cc50b7

This commit is contained in:
nao-pon
2017-06-13 22:53:14 +09:00
parent 8e4a8cb719
commit 99d9901d0c
6 changed files with 41 additions and 19 deletions
+4 -1
View File
@@ -543,6 +543,9 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
unset($stat['height']);
$stat['size'] = 0;
} else {
if (!$stat['mime']) {
unset($stat['mime']);
}
unset($stat['dirs']);
}
unset($stat['id']);
@@ -658,7 +661,7 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
* @author Dmitry (dio) Levashov
**/
protected function _mkfile($path, $name) {
return $this->make($path, $name, 'text/plain') ? $this->_joinPath($path, $name) : false;
return $this->make($path, $name, '') ? $this->_joinPath($path, $name) : false;
}
/**