mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 10:18:56 +02:00
Removed dump functions, to prevent exception in production.
This commit is contained in:
parent
2e318f9ea1
commit
253adee35b
1 changed files with 0 additions and 3 deletions
|
@ -116,12 +116,9 @@ class AttachmentHelper
|
||||||
$placeholders = ["%MEDIA%", "%BASE%/data/media", "%FOOTPRINTS%", "%FOOTPRINTS_3D"];
|
$placeholders = ["%MEDIA%", "%BASE%/data/media", "%FOOTPRINTS%", "%FOOTPRINTS_3D"];
|
||||||
$targets = [$this->base_path, $this->base_path, $this->footprints_path, $this->footprints_3d_path];
|
$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
|
//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
|
//Older path entries are given via %BASE% which was the project root
|
||||||
$placeholder_path = str_replace($placeholders, $targets, $placeholder_path);
|
$placeholder_path = str_replace($placeholders, $targets, $placeholder_path);
|
||||||
dump($placeholder_path);
|
|
||||||
|
|
||||||
//Normalize path
|
//Normalize path
|
||||||
$placeholder_path = str_replace('\\', '/', $placeholder_path);
|
$placeholder_path = str_replace('\\', '/', $placeholder_path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue