suppression fichiers créés lors désinstallation ; suppression majuscule dans nom plugin
FossilOrigin-Name: 2134225b5757bee55253c1af81ba9f3dab5ea2f948c93ae42d76d3af6164f370
This commit is contained in:
parent
26c113349a
commit
cc6c46f59d
9 changed files with 23 additions and 13 deletions
|
|
@ -32,7 +32,7 @@ if (f('save') && $form->check('recusfiscaux_config'))
|
|||
// nom, fonction et signature du responsable
|
||||
$plugin->setConfig('nom_responsable', trim(f('nom_responsable')));
|
||||
$plugin->setConfig('fonction_responsable', trim(f('fonction_responsable')));
|
||||
if (isset($_SESSION['sig_file'])) {
|
||||
if (isset($_SESSION['sig_file']) && count($_SESSION['sig_file']) > 0) {
|
||||
$plugin->setConfig('signature', $_SESSION['sig_file'][0]->path);
|
||||
}
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ if (f('save') && $form->check('recusfiscaux_config'))
|
|||
|
||||
$tpl->assign('ok', qg('ok') !== null);
|
||||
$tpl->assign('path', $path);
|
||||
$tpl->assign('default_signature', \Garradin\WWW_URL . "plugin/recusFiscaux/default_signature.png");
|
||||
$tpl->assign('default_signature', \Garradin\WWW_URL . "plugin/recusfiscaux/default_signature.png");
|
||||
$tpl->assign('plugin_config', $plugin->getConfig());
|
||||
$tpl->assign('plugin_css', ['style.css']);
|
||||
$tpl->display(PLUGIN_ROOT . '/templates/config.tpl');
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ $adresseAsso = Utils::getAdresseAsso();
|
|||
$signature =
|
||||
(null !== $plugin->getConfig('signature')) ?
|
||||
\Garradin\Files\Files::get($plugin->getConfig('signature'))->fullpath() :
|
||||
\Garradin\WWW_URL . "plugin/recusFiscaux/default_signature.png";
|
||||
\Garradin\WWW_URL . "plugin/recusfiscaux/default_signature.png";
|
||||
|
||||
// articles du CGI
|
||||
$articlesCGI = array();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ $adresseAsso = Utils::getAdresseAsso();
|
|||
$signature =
|
||||
(null !== $plugin->getConfig('signature')) ?
|
||||
\Garradin\Files\Files::get($plugin->getConfig('signature'))->fullpath() :
|
||||
\Garradin\WWW_URL . "plugin/recusFiscaux/default_signature.png";
|
||||
\Garradin\WWW_URL . "plugin/recusfiscaux/default_signature.png";
|
||||
|
||||
// articles du CGI
|
||||
$articlesCGI = array();
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ input[type="text"] {
|
|||
}
|
||||
#signature
|
||||
{
|
||||
width:300px;
|
||||
max-width: 300px;
|
||||
max-height 150px;
|
||||
}
|
||||
dl.config
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ if (!File::checkCreateAccess($parent, $session)) {
|
|||
$csrf_key = 'upload_file_' . md5($parent);
|
||||
|
||||
$form->runIf('upload', function () use ($parent) {
|
||||
$sig_file = File::uploadMultiple($parent, 'file');
|
||||
$_SESSION['sig_file'] = $sig_file;
|
||||
|
||||
$_SESSION['sig_file'] = File::uploadMultiple($parent, 'file');
|
||||
}, $csrf_key, PLUGIN_ROOT . '/www/admin/config.php');
|
||||
|
||||
$tpl->assign(compact('parent', 'csrf_key'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue