[deploy] Fix: Foto-URL relativ statt absolut (custom/bericht Problem)
All checks were successful
Deploy bericht / deploy (push) Successful in 1s

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Eduard Wisch 2026-04-13 13:17:35 +02:00
parent 0c6a262fe4
commit 1730c9fb00

View file

@ -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); $files = dol_dir_list($upload_dir, 'files', 0, '\.(jpg|jpeg|png|gif)$', '', 'date', SORT_DESC);
$photos = array(); $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) { foreach ($files as $f) {
$photos[] = array( $photos[] = array(