[deploy] Fix: Foto-URL relativ zu mobile_upload.php (ajax/get_photo.php)
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
1730c9fb00
commit
42906a4601
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue