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(