mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Added Image files from old Part-DB.
This commit is contained in:
parent
b2e0e4b7ad
commit
2e3713cd5e
2090 changed files with 344 additions and 20 deletions
|
@ -108,13 +108,14 @@ class Attachment extends NamedDBElement
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the filename (absolute path from filesystem root, as a UNIX path [only slashes])
|
||||
* Get the filename, relative to %BASE%
|
||||
*
|
||||
* @return string the filename as an absolute UNIX filepath from filesystem root
|
||||
* @return string
|
||||
*/
|
||||
public function getFilename() : string
|
||||
{
|
||||
return str_replace('%BASE%', BASE, $this->filename);
|
||||
return $this->filename;
|
||||
//return str_replace('%BASE%', BASE, $this->filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue