call constants directly from templates

move emails/ to email/ (singular naming)
This commit is contained in:
Spine
2021-01-05 21:08:55 +00:00
parent 94eaff9d3f
commit b06aef8b31
52 changed files with 219 additions and 285 deletions
+4 -8
View File
@@ -46,14 +46,10 @@ class GenerateInvite extends AbstractAPI {
$site_url = SITE_URL . "/register.php?invite={$key}";
if (!empty($_GET['email'])) {
$body = $this->twig->render('emails/invite.twig', [
'InviterName' => $interviewer_name,
'InviteKey' => $key,
'Email' => $_GET['email'],
'SITE_NAME' => SITE_NAME,
'SITE_URL' => SITE_URL,
'IRC_SERVER' => BOT_SERVER,
'DISABLED_CHAN' => BOT_DISABLED_CHAN
$body = $this->twig->render('email/invite.twig', [
'inviter_name' => $interviewer_name,
'inviter_key' => $key,
'email' => $_GET['email'],
]);
\Misc::send_email($_GET['email'], 'New account confirmation at '.SITE_NAME, $body, 'noreply');