From 2e8eb26e5a56c51478268de661902bdd21307c9d Mon Sep 17 00:00:00 2001 From: engel <> Date: Thu, 24 Mar 2022 17:58:36 +0000 Subject: [PATCH] simplification gestion logo FossilOrigin-Name: 91a2a75c24b4c340d69c6c80c9779b8e1454a8708181c92db13115a843e06281 --- install.php | 6 ------ uninstall.php | 6 ------ upgrade.php | 5 ----- 3 files changed, 17 deletions(-) diff --git a/install.php b/install.php index a5bedd9..1117fa6 100644 --- a/install.php +++ b/install.php @@ -8,9 +8,3 @@ $default_signature_file = (new File)->createAndStore('skel/plugin/recusfiscaux', 'default_signature.png', $path, 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); diff --git a/uninstall.php b/uninstall.php index 84fda2a..86e35bf 100644 --- a/uninstall.php +++ b/uninstall.php @@ -10,12 +10,6 @@ if (null !== $default_signature_file) { $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 = $plugin->getConfig('signature'); if (null !== $signature) { diff --git a/upgrade.php b/upgrade.php index cece83e..a0a8751 100644 --- a/upgrade.php +++ b/upgrade.php @@ -10,9 +10,4 @@ $old_version = $plugin->getInfos('version'); 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); }