From: Robin Appelman Date: Tue, 14 Oct 2014 13:45:10 +0000 (+0200) Subject: also update shared watcher X-Git-Tag: v8.0.0alpha1~420^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6ed9f53fcdba3ec4b3e934f731ea0437329ab9b0;p=nextcloud-server.git also update shared watcher --- diff --git a/apps/files_sharing/lib/watcher.php b/apps/files_sharing/lib/watcher.php index 11d3ce1cabd..5357119ab6c 100644 --- a/apps/files_sharing/lib/watcher.php +++ b/apps/files_sharing/lib/watcher.php @@ -30,9 +30,11 @@ class Shared_Watcher extends Watcher { * check $path for updates * * @param string $path + * @param array $cachedEntry + * @return boolean true if path was updated */ - public function checkUpdate($path) { - if (parent::checkUpdate($path) === true) { + public function checkUpdate($path, $cachedEntry = null) { + if (parent::checkUpdate($path, $cachedEntry) === true) { // since checkUpdate() has already updated the size of the subdirs, // only apply the update to the owner's parent dirs