Debug: Logging für dol_dir_list Ausgabe in orders.php
All checks were successful
Deploy bericht / deploy (push) Has been skipped
All checks were successful
Deploy bericht / deploy (push) Has been skipped
This commit is contained in:
parent
e46b2907f2
commit
0682b6ce37
1 changed files with 3 additions and 0 deletions
|
|
@ -165,11 +165,14 @@ if (method_exists($cmd, 'fetch_optionals')) $cmd->fetch_optionals();
|
|||
if ($action === 'photos') {
|
||||
// Anhänge des Auftrags
|
||||
$upload_dir = $conf->commande->multidir_output[$cmd->entity].'/'.dol_sanitizeFileName($cmd->ref);
|
||||
error_log('[BERICHT] upload_dir: '.$upload_dir.' exists: '.(is_dir($upload_dir) ? 'yes' : 'no'));
|
||||
$files = is_dir($upload_dir)
|
||||
? dol_dir_list($upload_dir, 'files', 1, '', '(\.meta|_preview.*\.png|thumbs)$')
|
||||
: array();
|
||||
error_log('[BERICHT] dol_dir_list returned '.count($files).' files');
|
||||
$out = array();
|
||||
foreach ($files as $f) {
|
||||
error_log('[BERICHT] file: '.$f['name'].' size: '.$f['size']);
|
||||
$out[] = array(
|
||||
'filename' => $f['name'],
|
||||
'size' => (int) $f['size'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue