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,12 +1,12 @@
<?php
namespace Garradin;
namespace Paheko;
require_once __DIR__ . '/_inc.php';
$session->requireAccess($session::SECTION_ACCOUNTING, $session::ACCESS_WRITE);
qv(['id' => 'required|numeric']);
f(['id' => 'required|numeric']);
$id = (int) qg('id');
@ -25,7 +25,7 @@ if (f('delete'))
{
try {
$facture->delete($f->id);
Utils::redirect(PLUGIN_URL . 'index.php');
Utils::redirect(PLUGIN_ADMIN_URL . 'index.php');
}
catch (UserException $e)
{