"fixed displayname property to contain just the basename of the file/dir, as davfs displays this (funny names if there's a full path) as pointed out by Hans Jürgen on the devel list"

This commit is contained in:
Ralf Becker 2008-11-15 07:46:59 +00:00
parent ee623e72d3
commit 04502ddc97

View File

@ -132,7 +132,7 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem
$info['props'] = array();
// no special beautified displayname here ...
$info['props'][] = HTTP_WebDAV_Server::mkprop ('displayname', strtoupper($path));
$info['props'][] = HTTP_WebDAV_Server::mkprop ('displayname', egw_vfs::basename(self::_unslashify($path)));
// creation and modification time
$info['props'][] = HTTP_WebDAV_Server::mkprop ('creationdate', filectime($fspath));