From 37b1a0c0c151c381eb5d23453f3e2515a4c6eb1f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 23 Jun 2006 17:43:07 +0000 Subject: [PATCH] fixed bug: delete always deleted the parent-dir too --- phpgwapi/inc/class.vfs_webdav_server.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.vfs_webdav_server.inc.php b/phpgwapi/inc/class.vfs_webdav_server.inc.php index 5830c092a7..7a1c20d050 100644 --- a/phpgwapi/inc/class.vfs_webdav_server.inc.php +++ b/phpgwapi/inc/class.vfs_webdav_server.inc.php @@ -32,13 +32,13 @@ class vfs_webdav_server extends HTTP_WebDAV_Server var $dav_powered_by = 'eGroupWare WebDAV server'; /** - * Debug level: 0 = nothing, 1 = function calls, 2 = additionally $_SERVER + * Debug level: 0 = nothing, 1 = function calls, 2 = more info, eg. complete $_SERVER array * * The debug messages are send to the apache error_log * * @var integer */ - var $debug = 1; + var $debug = 0; function vfs_webdav_server() { @@ -270,7 +270,7 @@ class vfs_webdav_server extends HTTP_WebDAV_Server if ($this->debug) error_log('vfs_webdav_server::DELETE('.print_r($options,true).')'); $vfs_data = array( - 'string' => dirname($GLOBALS['egw']->translation->convert($options['path'],'utf-8')), + 'string' => $GLOBALS['egw']->translation->convert($options['path'],'utf-8'), 'relatives' => array(RELATIVE_ROOT), // filename is relative to the vfs-root ); if (!$this->vfs->file_exists($vfs_data))