Changement namespace Garradin => Paheko
FossilOrigin-Name: 05bd9b85d91af38c15952ea00891080a67e21c8e00ce3acf16c7b8263dc55d2c
This commit is contained in:
parent
bc4739877c
commit
b2885f3c01
8 changed files with 33 additions and 33 deletions
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
use Garradin\Files\Files;
|
||||
use Garradin\Entities\Files\File;
|
||||
use Garradin\Plugin\RecusFiscaux\Utils;
|
||||
use Paheko\Files\Files;
|
||||
use Paheko\Entities\Files\File;
|
||||
use Paheko\Plugin\RecusFiscaux\Utils;
|
||||
|
||||
$session->requireAccess($session::SECTION_CONFIG, $session::ACCESS_ADMIN);
|
||||
$art_sel = f('articlesCGI') ?: [];
|
||||
|
|
@ -64,7 +64,7 @@ if (f('save') && $form->check('recusfiscaux_config')) {
|
|||
null !== $plugin->getConfig('signature') &&
|
||||
$plugin->getConfig('signature') != $_SESSION['sig_file'][0]->path
|
||||
) {
|
||||
$sig_file = \Garradin\Files\Files::get($plugin->getConfig('signature'));
|
||||
$sig_file = \Paheko\Files\Files::get($plugin->getConfig('signature'));
|
||||
if (null !== $sig_file) {
|
||||
$sig_file->delete();
|
||||
}
|
||||
|
|
@ -99,7 +99,7 @@ if (f('save') && $form->check('recusfiscaux_config')) {
|
|||
}
|
||||
$plugin->setConfig('champsNom', $champsNom);
|
||||
|
||||
\Garradin\Utils::redirect(PLUGIN_URL . 'config.php?ok');
|
||||
\Paheko\Utils::redirect(PLUGIN_URL . 'config.php?ok');
|
||||
} catch (UserException $e) {
|
||||
$form->addError($e->getMessage());
|
||||
}
|
||||
|
|
@ -112,7 +112,7 @@ uasort($champsNom, function ($a, $b) {
|
|||
|
||||
$tpl->assign('ok', qg('ok') !== null);
|
||||
$path = qg('path') ?: File::CONTEXT_CONFIG;
|
||||
$tpl->assign('default_signature', \Garradin\WWW_URL . "plugin/recusfiscaux/default_signature.png");
|
||||
$tpl->assign('default_signature', \Paheko\WWW_URL . "plugin/recusfiscaux/default_signature.png");
|
||||
$tpl->assign('plugin_config', $plugin->getConfig());
|
||||
$tpl->assign('plugin_css', ['style.css']);
|
||||
$tpl->assign('numerotation', $plugin->getConfig('numerotation'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue