Signed-off-by: Robin Appelman <robin@icewind.nl>
class TrashFile extends AbstractTrashFile {
public function get() {
- return $this->data->getStorage()->fopen(Trashbin::getTrashFilename($this->data->getInternalPath(), $this->getLastModified()), 'rb');
+ return $this->data->getStorage()->fopen(Trashbin::getTrashFilename($this->data->getInternalPath(), $this->getDeletionTime()), 'rb');
}
public function getName(): string {
- return Trashbin::getTrashFilename($this->data->getName(), $this->getLastModified());
+ return Trashbin::getTrashFilename($this->data->getName(), $this->getDeletionTime());
}
}
class TrashFolder extends AbstractTrashFolder {
public function getName(): string {
- return Trashbin::getTrashFilename($this->data->getName(), $this->getLastModified());
+ return Trashbin::getTrashFilename($this->data->getName(), $this->getDeletionTime());
}
}