[deploy] Fix: Foto-URL relativ statt absolut (custom/bericht Problem)
All checks were successful
Deploy bericht / deploy (push) Successful in 1s
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:
parent
0c6a262fe4
commit
1730c9fb00
1 changed files with 2 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue