Removed dump functions, to prevent exception in production.

This commit is contained in:
Jan Böhmer 2019-09-24 18:53:05 +02:00
parent 2e318f9ea1
commit 253adee35b

View file

@ -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);