diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-01 18:04:29 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-01 18:04:29 +0100 |
commit | b41189de4420ea8a48adaaf7bb59f9227124b70a (patch) | |
tree | 9d0c46104770ee54d738c047d672a0854cb8585a /lib/files/view.php | |
parent | f2ca7023e1ece60dc3cebc5cd770c7373f53c93a (diff) | |
download | nextcloud-server-b41189de4420ea8a48adaaf7bb59f9227124b70a.tar.gz nextcloud-server-b41189de4420ea8a48adaaf7bb59f9227124b70a.zip |
Cache: allow storage backends to overwrite Watcher
Diffstat (limited to 'lib/files/view.php')
-rw-r--r-- | lib/files/view.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/files/view.php b/lib/files/view.php index 592c484a21c..d3f93d39f5a 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -685,7 +685,7 @@ class View { $scanner = $storage->getScanner(); $scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW); } else { - $watcher = new \OC\Files\Cache\Watcher($storage); + $watcher = $storage->getWatcher(); $watcher->checkUpdate($internalPath); } @@ -733,7 +733,7 @@ class View { $scanner = $storage->getScanner(); $scanner->scan($internalPath, Cache\Scanner::SCAN_SHALLOW); } else { - $watcher = new \OC\Files\Cache\Watcher($storage); + $watcher = $storage->getWatcher(); $watcher->checkUpdate($internalPath); } |