Remplacement PLUGIN_URL ; ajout session_start()

FossilOrigin-Name: 7fad3fa0b91ae127517c4e9d9a62a316280e17c561855a6abde8711e3cac72f2
This commit is contained in:
engel 2023-11-10 11:31:18 +00:00
parent b53f089c87
commit 8091c8b87d
9 changed files with 19 additions and 9 deletions

View file

@ -1,6 +1,7 @@
<?php
namespace Paheko;
session_start();
use Paheko\Plugin\RecusFiscaux\Utils;
@ -14,7 +15,7 @@ if ($anneesFiscales[0] < $anneeCourante) {
if (f('change'))
{
$_SESSION['annee_recu'] = f('annee_recu');
\Paheko\Utils::redirect(f('from') ?: PLUGIN_URL);
\Paheko\Utils::redirect(f('from') ?: \Paheko\Utils::plugin_url());
}
$tpl->assign('anneesFiscales', $anneesFiscales);