Return last modification time to allow proper listing in cadaver
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
23aab05bda
commit
73007255ce
1 changed files with 9 additions and 4 deletions
|
@ -83,11 +83,16 @@ class AvatarNode extends File {
|
|||
return 'image/jpeg';
|
||||
}
|
||||
|
||||
// function getSize() {
|
||||
// return $this->avatar->getFile($this->size)->getSize();
|
||||
// }
|
||||
|
||||
function getETag() {
|
||||
return $this->avatar->getFile($this->size)->getEtag();
|
||||
}
|
||||
|
||||
function getLastModified() {
|
||||
$timestamp = $this->avatar->getFile($this->size)->getMTime();
|
||||
if (!empty($timestamp)) {
|
||||
return (int)$timestamp;
|
||||
}
|
||||
return $timestamp;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue