recusfiscaux/uninstall.php
engel 7d4d305cfa simplification gestion logo
FossilOrigin-Name: b87bde43d3a8108761b33901f1555143153c30819b16f5ddf5120f9e968da491
2022-03-25 08:02:00 +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']);