From cff7b57a41207429669fc110aeb1d5ad2c3d58c6 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Fri, 3 Nov 2023 14:53:50 +0100 Subject: [PATCH] Ajout appel fonction upgrade --- admin/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index 3a6df02..0096801 100644 --- a/admin/index.php +++ b/admin/index.php @@ -2,6 +2,9 @@ namespace Paheko; +if ($plugin->needUpgrade()) { + $plugin->upgrade(); +} require_once __DIR__ . '/_inc.php'; $session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_READ); @@ -12,4 +15,4 @@ $list->loadFromQueryString(); $tpl->assign(compact('list')); -$tpl->display(PLUGIN_ROOT . '/templates/index.tpl'); \ No newline at end of file +$tpl->display(PLUGIN_ROOT . '/templates/index.tpl');