mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
fix lot of errors, working dashboard
This commit is contained in:
parent
27d2a6c5b2
commit
6d9b1289fd
27 changed files with 89 additions and 73 deletions
|
@ -43,7 +43,7 @@ namespace controllers\publics;
|
|||
{
|
||||
$page = (int) $page;
|
||||
$limit = 25;
|
||||
$sendeds = $this->internal_sended->list($_SESSION['user']['id'], $limit, $page);
|
||||
$sendeds = $this->internal_sended->list_for_user($_SESSION['user']['id'], $limit, $page);
|
||||
$this->render('sended/list', ['sendeds' => $sendeds, 'page' => $page, 'limit' => $limit, 'nb_results' => \count($sendeds)]);
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ namespace controllers\publics;
|
|||
continue;
|
||||
}
|
||||
|
||||
$this->internal_sended->delete($id);
|
||||
$this->internal_sended->delete_for_user($_SESSION['user']['id'], $id);
|
||||
}
|
||||
|
||||
return $this->redirect(\descartes\Router::url('Sended', 'list'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue