set date of folder

This commit is contained in:
Uwe Steinmann 2018-09-17 13:47:40 +02:00
parent 621846c86d
commit 482bf93cc0
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 5.1.9 Changes in version 5.1.9
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
- set date of folder in webdav view
- fix output of status on approval/review summary page - fix output of status on approval/review summary page
- pass context to getAccessMode() - pass context to getAccessMode()
- add opensearch description - add opensearch description

View File

@ -326,8 +326,8 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
if (get_class($obj) == $this->dms->getClassname('folder')) { if (get_class($obj) == $this->dms->getClassname('folder')) {
// modification time // modification time
/* folders do not have a modification time */ /* folders do not have a modification time */
$info["props"][] = $this->mkprop("getlastmodified", time()); $info["props"][] = $this->mkprop("getlastmodified", $obj->getDate());
$info["props"][] = $this->mkprop("creationdate", time()); $info["props"][] = $this->mkprop("creationdate", $obj->getDate());
// directory (WebDAV collection) // directory (WebDAV collection)
$patharr = $obj->getPath(); $patharr = $obj->getPath();