src build elFinder-2.1-6974f1b

This commit is contained in:
nao-pon
2017-09-18 22:58:42 +09:00
parent 073d79c787
commit bee62ee329
11 changed files with 33 additions and 23 deletions
+2 -2
View File
@@ -1495,7 +1495,7 @@ class elFinderVolumeBox extends elFinderVolumeDriver
**/
protected function _mkfile($path, $name)
{
return $this->_save(fopen($this->getTempFile(), 'wb'), $path, $name, array());
return $this->_save($this->tmpfile(), $path, $name, array());
}
/**
@@ -1677,7 +1677,7 @@ class elFinderVolumeBox extends elFinderVolumeDriver
$tmpFilePath = isset($metaDatas['uri']) ? $metaDatas['uri'] : '';
// remote contents
if (!$tmpFilePath || empty($metaDatas['seekable'])) {
$tmpHandle = fopen($this->getTempFile(), 'wb');
$tmpHandle = $this->tmpfile();
stream_copy_to_stream($fp, $tmpHandle);
$metaDatas = stream_get_meta_data($tmpHandle);
$tmpFilePath = $metaDatas['uri'];