mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 17:06:28 +02:00
Update disucssion and numebrs to direct linking
This commit is contained in:
parent
53fe0b11f3
commit
9dd53cec7d
11 changed files with 32 additions and 13 deletions
|
@ -68,7 +68,14 @@ namespace controllers\publics;
|
|||
'contact' => $contact,
|
||||
];
|
||||
|
||||
echo json_encode($this->internal_templating->render($template, $datas));
|
||||
$result = $this->internal_templating->render($template, $datas);
|
||||
$return = $result;
|
||||
if (!trim($result['result']))
|
||||
{
|
||||
$return['result'] = 'Message vide, il ne sera pas envoyé.';
|
||||
}
|
||||
|
||||
echo json_encode($return);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue