simplification gestion logo

FossilOrigin-Name: 91a2a75c24b4c340d69c6c80c9779b8e1454a8708181c92db13115a843e06281
This commit is contained in:
engel 2022-03-24 17:58:36 +00:00
parent bc21f2733e
commit 2e8eb26e5a
3 changed files with 0 additions and 17 deletions

View File

@ -8,9 +8,3 @@ $default_signature_file = (new File)->createAndStore('skel/plugin/recusfiscaux',
'default_signature.png', 'default_signature.png',
$path, $path,
null); null);
// « logo » par défaut
$path = __DIR__ . '/data/default_logo.png';
$default_logo_file = (new File)->createAndStore('skel/plugin/recusfiscaux',
'default_logo.png',
$path,
null);

View File

@ -10,12 +10,6 @@ if (null !== $default_signature_file) {
$default_signature_file->delete(); $default_signature_file->delete();
} }
// logo par défaut
$default_logo_file = \Garradin\Files\Files::get('skel/plugin/recusfiscaux/default_logo.png');
if (null !== $default_logo_file) {
$default_logo_file->delete();
}
// signature réelle // signature réelle
$signature = $plugin->getConfig('signature'); $signature = $plugin->getConfig('signature');
if (null !== $signature) { if (null !== $signature) {

View File

@ -10,9 +10,4 @@ $old_version = $plugin->getInfos('version');
if (version_compare($old_version, '0.6.0', '<')) if (version_compare($old_version, '0.6.0', '<'))
{ {
$path = __DIR__ . '/data/default_logo.png';
$default_logo_file = (new File)->createAndStore('skel/plugin/recusfiscaux',
'default_logo.png',
$path,
null);
} }