summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-26 01:43:04 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-26 01:43:04 -0500
commitea83acedebbcf70b19643efe82b72fb139cf8ad2 (patch)
tree86ed86652e24c075c1ef64702e28e7f7cc252c12 /apps
parent8983465210c9dcd91cc178a072775efbcda85ca8 (diff)
downloadnextcloud-server-ea83acedebbcf70b19643efe82b72fb139cf8ad2.tar.gz
nextcloud-server-ea83acedebbcf70b19643efe82b72fb139cf8ad2.zip
Fix target path and reuse mtime
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/updater.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php
index af6f9215598..a41ce76f933 100644
--- a/apps/files_sharing/lib/updater.php
+++ b/apps/files_sharing/lib/updater.php
@@ -43,11 +43,11 @@ class Shared_Updater {
}
}
// Correct folders of shared file owner
+ $target = substr($target, 8);
if ($uidOwner !== $uid && $source = \OC_Share_Backend_File::getSource($target)) {
- \OC\Files\Filesystem::initMountPoints($source['uid_owner']);
- $source = '/'.$source['uid_owner'].'/'.$source['path'];
- $mtime = \OC\Files\Filesystem::filemtime($target);
- \OC\Files\Cache\Updater::correctFolder($source, $mtime);
+ \OC\Files\Filesystem::initMountPoints($uidOwner);
+ $source = '/'.$uidOwner.'/'.$source['path'];
+ \OC\Files\Cache\Updater::correctFolder($source, $info['mtime']);
}
}
}