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');
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ $csrf_key = 'delete_client_'.$c->id;
|
|||
|
||||
$form->runIf('delete', function () use ($client, $c) {
|
||||
$client->delete($c->id);
|
||||
}, $csrf_key, PLUGIN_URL . 'clients.php');
|
||||
}, $csrf_key, PLUGIN_ADMIN_URL . 'clients.php');
|
||||
|
||||
$tpl->assign('deletable', $client->isDeletable($id));
|
||||
$tpl->assign('client', $c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue