Added Image files from old Part-DB.

This commit is contained in:
Jan Böhmer 2019-03-12 19:39:02 +01:00
parent b2e0e4b7ad
commit 2e3713cd5e
2090 changed files with 344 additions and 20 deletions

View file

@ -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);
}
/**