mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Update internal controllers to use standard one
This commit is contained in:
parent
25b461d611
commit
bc622285a4
16 changed files with 558 additions and 880 deletions
|
@ -43,13 +43,14 @@ namespace controllers\internals;
|
|||
'admin' => $admin,
|
||||
];
|
||||
|
||||
$result = $this->model_command->insert($command);
|
||||
$result = $this->get_model()->insert($command);
|
||||
if (!$result)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->internal_event->create($id_user, 'COMMAND_ADD', 'Ajout commande : ' . $name . ' => ' . $script);
|
||||
$internal_event = new Event($this->bdd);
|
||||
$internal_event->create($id_user, 'COMMAND_ADD', 'Ajout commande : ' . $name . ' => ' . $script);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
@ -72,6 +73,6 @@ namespace controllers\internals;
|
|||
'admin' => $admin,
|
||||
];
|
||||
|
||||
return $this->model_command->update_for_user($id_user, $id, $datas);
|
||||
return $this->get_model()->update_for_user($id_user, $id, $datas);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue