path: root/public_html/index.php
diff options
authorThomas Bruederli <>2013-11-11 15:08:07 (GMT)
committerThomas Bruederli <>2014-01-08 13:02:32 (GMT)
commitf16aba537e0252bd5725a42306cb298c99077a3a (patch)
tree819204d27b28b5cd9a4da0d68058d58df08367ff /public_html/index.php
parentb060ac26c9c4a9ead08f8423ce3b8c7dc7cbc673 (diff)
Maintain a per-user temp directory for locks and temp files. Run a cleanup routine to remove old temp files every now and then
Diffstat (limited to 'public_html/index.php')
1 files changed, 2 insertions, 2 deletions
diff --git a/public_html/index.php b/public_html/index.php
index 83c8822..66b3d0c 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -155,11 +155,11 @@ if ($services['CARDDAV']) {
if ($services['WEBDAV']) {
// the lock manager is reponsible for making sure users don't overwrite each others changes.
// TODO: replace this with a class that manages locks in the Kolab backend
- $locks_backend = new Kolab\DAV\Locks\File(KOLAB_DAV_ROOT . '/temp/locks');
+ $locks_backend = new \Kolab\DAV\Locks\File(KOLAB_DAV_ROOT . '/temp');
$server->addPlugin(new \Sabre\DAV\Locks\Plugin($locks_backend));
// intercept some of the garbage files operation systems tend to generate when mounting a WebDAV share
- $server->addPlugin(new \Sabre\DAV\TemporaryFileFilterPlugin(KOLAB_DAV_ROOT . '/temp'));
+ $server->addPlugin(new \Kolab\DAV\TempFilesPlugin(KOLAB_DAV_ROOT . '/temp'));
// HTML UI for browser-based access (recommended only for development)