]> source.dussan.org Git - nextcloud-server.git/commitdiff
also update shared watcher
authorRobin Appelman <icewind@owncloud.com>
Tue, 14 Oct 2014 13:45:10 +0000 (15:45 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 24 Oct 2014 10:32:55 +0000 (12:32 +0200)
apps/files_sharing/lib/watcher.php

index 11d3ce1cabd9c840dd4287ea6a3cd2a7c1450b2a..5357119ab6c2de61f5d0c51b7328a8f7482093b8 100644 (file)
@@ -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