Ajout appel fonction upgrade
This commit is contained in:
parent
9de9e10987
commit
cff7b57a41
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user