mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-22 23:27:31 +01:00
Removed dump functions, to prevent exception in production.
This commit is contained in:
@@ -116,12 +116,9 @@ class AttachmentHelper
|
||||
$placeholders = ["%MEDIA%", "%BASE%/data/media", "%FOOTPRINTS%", "%FOOTPRINTS_3D"];
|
||||
$targets = [$this->base_path, $this->base_path, $this->footprints_path, $this->footprints_3d_path];
|
||||
|
||||
|
||||
dump($placeholder_path);
|
||||
//The new attachments use %MEDIA% as placeholders, which is the directory set in media_directory
|
||||
//Older path entries are given via %BASE% which was the project root
|
||||
$placeholder_path = str_replace($placeholders, $targets, $placeholder_path);
|
||||
dump($placeholder_path);
|
||||
|
||||
//Normalize path
|
||||
$placeholder_path = str_replace('\\', '/', $placeholder_path);
|
||||
|
||||
Reference in New Issue
Block a user