944f819fec
FossilOrigin-Name: 629e57908a411fe551d90efe1eb054ec4357c20d05f325bdc7fa0a0e24858598
28 lines
741 B
PHP
28 lines
741 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();
|
|
}
|
|
|
|
// 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) {
|
|
$sig_file = \Garradin\Files\Files::get($signature);
|
|
if (null !== $sig_file) {
|
|
$sig_file->delete();
|
|
}
|
|
}
|
|
unset($_SESSION['sig_file']);
|