[deploy] Fix: Foto-URL relativ zu mobile_upload.php (ajax/get_photo.php)
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:18:32 +02:00
parent 1730c9fb00
commit 42906a4601

View file

@ -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); $files = dol_dir_list($upload_dir, 'files', 0, '\.(jpg|jpeg|png|gif)$', '', 'date', SORT_DESC);
$photos = array(); $photos = array();
// Relative URL zum get_photo.php (funktioniert sowohl in /custom/bericht/ als auch /bericht/) // Relative URL vom mobile_upload.php aus gesehen (liegt im Hauptordner, get_photo.php im ajax-Ordner)
$base_url = 'get_photo.php'; $base_url = 'ajax/get_photo.php';
foreach ($files as $f) { foreach ($files as $f) {
$photos[] = array( $photos[] = array(