Fix upload allegati
This commit is contained in:
parent
700b67a3d2
commit
dfedb4b512
|
@ -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);
|
||||||
|
|
|
@ -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']));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue