recusfiscaux/uninstall.php
engel 2e8eb26e5a simplification gestion logo
FossilOrigin-Name: 91a2a75c24b4c340d69c6c80c9779b8e1454a8708181c92db13115a843e06281
2022-03-24 17:58:36 +00:00

22 lines
554 B
PHP

<?php
namespace Garradin;
use Garradin\Entities\Files\File;
// supprimer les fichiers créés
// signature par défaut
$default_signature_file = \Garradin\Files\Files::get('skel/plugin/recusfiscaux/default_signature.png');
if (null !== $default_signature_file) {
$default_signature_file->delete();
}
// signature réelle
$signature = $plugin->getConfig('signature');
if (null !== $signature) {
$sig_file = \Garradin\Files\Files::get($signature);
if (null !== $sig_file) {
$sig_file->delete();
}
}
unset($_SESSION['sig_file']);