Migrate to Paheko 1.3
This commit is contained in:
parent
161659acfb
commit
235f8ceeed
31 changed files with 95 additions and 94 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue