Fix upload allegati

This commit is contained in:
Pek5892 2024-03-27 10:03:36 +01:00
parent 700b67a3d2
commit dfedb4b512
2 changed files with 3 additions and 2 deletions

View File

@ -20,4 +20,4 @@
include_once __DIR__.'/init.php'; include_once __DIR__.'/init.php';
$file = $fattura->getFatturaElettronica(); $file = $fattura->getFatturaElettronica();
download(base_dir().'/files/fatture/'.$file->filename, $file->original_name); download(base_dir().'/files/'.$file->directory.'/'.$file->filename, $file->original_name);

View File

@ -153,7 +153,7 @@ class Upload extends Model
{ {
$parent = $this->plugin ?: $this->module; $parent = $this->plugin ?: $this->module;
return strtolower($parent->name); return strtolower($parent->getTranslation('name'));
} }
/** /**
@ -380,4 +380,5 @@ class Upload extends Model
}); });
$img->save(slashes($directory.'/'.$info['filename'].'_thumb100.'.$info['extension'])); $img->save(slashes($directory.'/'.$info['filename'].'_thumb100.'.$info['extension']));
} }
} }