From 1730c9fb008415c132f7d08ea91b0e60f3eb3fb4 Mon Sep 17 00:00:00 2001 From: Eduard Wisch Date: Mon, 13 Apr 2026 13:17:35 +0200 Subject: [PATCH] [deploy] Fix: Foto-URL relativ statt absolut (custom/bericht Problem) Co-Authored-By: Claude Opus 4.5 --- ajax/list_photos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ajax/list_photos.php b/ajax/list_photos.php index 71a3fc2..fb25268 100644 --- a/ajax/list_photos.php +++ b/ajax/list_photos.php @@ -49,7 +49,8 @@ if (!$upload_dir || !is_dir($upload_dir)) { $files = dol_dir_list($upload_dir, 'files', 0, '\.(jpg|jpeg|png|gif)$', '', 'date', SORT_DESC); $photos = array(); -$base_url = dol_buildpath('/bericht/ajax/get_photo.php', 1); +// Relative URL zum get_photo.php (funktioniert sowohl in /custom/bericht/ als auch /bericht/) +$base_url = 'get_photo.php'; foreach ($files as $f) { $photos[] = array(