diff options
Diffstat (limited to 'lib/files/view.php')
-rw-r--r-- | lib/files/view.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/files/view.php b/lib/files/view.php index f02e3d4d513..65c5a527a1b 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -254,7 +254,11 @@ class View { $hooks[] = 'write'; } - return $this->basicOperation('touch', $path, $hooks, $mtime); + $result = $this->basicOperation('touch', $path, array('write'), $mtime); + if (!$result) { //if native touch fails, we emulate it by changing the mtime in the cache + $this->putFileInfo($path, array('mtime' => $mtime)); + } + return true; } public function file_get_contents($path) { |