src build elFinder-2.1-22a6c56

This commit is contained in:
nao-pon
2017-05-16 22:53:24 +09:00
parent 13fdd78424
commit 2054db5adb
7 changed files with 37 additions and 8 deletions
+2 -2
View File
@@ -908,8 +908,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
return false;
}
// keep timestamp on upload
if ($mtime && $this->ARGS['cmd'] === 'upload' && isset($this->options['keepTimestamp']['upload'])) {
touch($path, $mtime);
if ($mtime && $this->ARGS['cmd'] === 'upload') {
touch($path, isset($this->options['keepTimestamp']['upload'])? $mtime : time());
}
// re-create the source file for remove processing of paste command
$isCmdPaste && !$isCmdCopy && touch($uri);