recusfiscaux/uninstall.php
engel 2d643f5166 ajout correction désinstallation
FossilOrigin-Name: abe813c05e1ada1f3c8403c9ab4ad1adc2004599405e18c977cb95845effc77c
2022-03-14 17:58:20 +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']);