Migrate to Paheko 1.3

This commit is contained in:
Noizette 2023-08-01 22:56:38 +02:00
parent 161659acfb
commit 235f8ceeed
31 changed files with 95 additions and 94 deletions

View file

@ -1,6 +1,6 @@
<?php
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/_inc.php';
@ -32,7 +32,7 @@ if (f('save') && $form->check('facturation_config'))
$plugin->setConfig('pattern', f('pattern'));
Utils::redirect(PLUGIN_URL . 'config.php?ok');
Utils::redirect(PLUGIN_ADMIN_URL . 'config.php?ok');
}
catch (UserException $e)
{
@ -43,6 +43,6 @@ if (f('save') && $form->check('facturation_config'))
$tpl->assign('ok', qg('ok') !== null);
$tpl->assign('patterns', \Garradin\Plugin\Facturation\PATTERNS_LIST);
$tpl->assign('patterns', \Paheko\Plugin\Facturation\PATTERNS_LIST);
$tpl->display(PLUGIN_ROOT . '/templates/config.tpl');