mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Fix upload allegati
This commit is contained in:
parent
700b67a3d2
commit
dfedb4b512
@ -20,4 +20,4 @@
|
||||
include_once __DIR__.'/init.php';
|
||||
|
||||
$file = $fattura->getFatturaElettronica();
|
||||
download(base_dir().'/files/fatture/'.$file->filename, $file->original_name);
|
||||
download(base_dir().'/files/'.$file->directory.'/'.$file->filename, $file->original_name);
|
||||
|
@ -153,7 +153,7 @@ class Upload extends Model
|
||||
{
|
||||
$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']));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user