mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 11:24:31 +02:00
Correctly show external picture attachments.
This commit is contained in:
parent
2e527525bc
commit
8b43faeeac
2 changed files with 6 additions and 2 deletions
|
@ -125,13 +125,17 @@ class AttachmentManager
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($attachment->isExternal()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$absolute_path = $this->toAbsoluteFilePath($attachment);
|
||||
|
||||
if (null === $absolute_path) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return file_exists($absolute_path) || $attachment->isExternal();
|
||||
return file_exists($absolute_path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue