[VD:MySQL] support "Save As" of edit command

This commit is contained in:
nao-pon
2017-06-13 13:08:30 +09:00
parent d9776331b1
commit 0fc860eba7
+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;
}
/**