Ajout appel fonction upgrade

This commit is contained in:
Jean-Christophe Engel 2023-11-03 14:53:50 +01:00
parent 9de9e10987
commit cff7b57a41
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,9 @@
namespace Paheko; namespace Paheko;
if ($plugin->needUpgrade()) {
$plugin->upgrade();
}
require_once __DIR__ . '/_inc.php'; require_once __DIR__ . '/_inc.php';
$session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ); $session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ);
@ -12,4 +15,4 @@ $list->loadFromQueryString();
$tpl->assign(compact('list')); $tpl->assign(compact('list'));
$tpl->display(PLUGIN_ROOT . '/templates/index.tpl'); $tpl->display(PLUGIN_ROOT . '/templates/index.tpl');