mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Working daemons by extracting phone create and using cmd instead
This commit is contained in:
parent
c265e0d43c
commit
99cdf6516a
5 changed files with 29 additions and 21 deletions
|
@ -20,5 +20,10 @@ namespace controllers\internals;
|
|||
{
|
||||
$server = new \daemons\Server();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function phone ($number)
|
||||
{
|
||||
$server = new \daemons\Phone($number);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -341,7 +341,8 @@ namespace controllers\internals;
|
|||
if ((int) ($users_settings[$scheduled['id_user']]['templating'] ?? false))
|
||||
{
|
||||
$contact['datas'] = json_decode($contact['datas'], true);
|
||||
$render = $internal_templating->render($scheduled['text'], $contact);
|
||||
$datas = ['contact' => $contact];
|
||||
$render = $internal_templating->render($scheduled['text'], $datas);
|
||||
|
||||
if (!$render['success'])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue