diff options
Diffstat (limited to 'lib/Sabre/Album/AlbumPhoto.php')
-rw-r--r-- | lib/Sabre/Album/AlbumPhoto.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Sabre/Album/AlbumPhoto.php b/lib/Sabre/Album/AlbumPhoto.php index 88985139..5bd31830 100644 --- a/lib/Sabre/Album/AlbumPhoto.php +++ b/lib/Sabre/Album/AlbumPhoto.php @@ -51,7 +51,7 @@ class AlbumPhoto implements IFile { } public function getName() { - return $this->file->getName(); + return $this->file->getFileId() . "-" . $this->file->getName(); } public function setName($name) { @@ -92,4 +92,8 @@ class AlbumPhoto implements IFile { public function getSize() { return $this->file->getSize(); } + + public function getFile(): AlbumFile { + return $this->file; + } } |