From 42906a4601c06f7e3dc1431b7b85ad829a3ef399 Mon Sep 17 00:00:00 2001 From: Eduard Wisch Date: Mon, 13 Apr 2026 13:18:32 +0200 Subject: [PATCH] [deploy] Fix: Foto-URL relativ zu mobile_upload.php (ajax/get_photo.php) Co-Authored-By: Claude Opus 4.5 --- ajax/list_photos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax/list_photos.php b/ajax/list_photos.php index fb25268..f9a10da 100644 --- a/ajax/list_photos.php +++ b/ajax/list_photos.php @@ -49,8 +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(); -// Relative URL zum get_photo.php (funktioniert sowohl in /custom/bericht/ als auch /bericht/) -$base_url = 'get_photo.php'; +// Relative URL vom mobile_upload.php aus gesehen (liegt im Hauptordner, get_photo.php im ajax-Ordner) +$base_url = 'ajax/get_photo.php'; foreach ($files as $f) { $photos[] = array(