21 lines
506 B
PHP
21 lines
506 B
PHP
<?php
|
|
namespace Paheko;
|
|
|
|
// supprimer les fichiers créés
|
|
|
|
// signature par défaut
|
|
$default_signature_file = \Paheko\Files\Files::get('ext/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 = \Paheko\Files\Files::get($signature);
|
|
if (null !== $sig_file) {
|
|
$sig_file->delete();
|
|
}
|
|
}
|
|
unset($_SESSION['sig_file']);
|