From 649480c40340fbc148816d54ce12c5e0c75ff96e Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Wed, 18 Nov 2015 00:51:29 +0800 Subject: [PATCH] Update# use dot to namespace templates --- controller/registercontroller.php | 4 ++-- templates/{email_html.php => email.validate_html.php} | 0 .../{email_plaintext.php => email.validate_plaintext.php} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename templates/{email_html.php => email.validate_html.php} (100%) rename templates/{email_plaintext.php => email.validate_plaintext.php} (100%) diff --git a/controller/registercontroller.php b/controller/registercontroller.php index 87cf47e..ac02d2a 100644 --- a/controller/registercontroller.php +++ b/controller/registercontroller.php @@ -257,9 +257,9 @@ class RegisterController extends Controller { 'link' => $link, 'sitename' => $this->defaults->getName() ]; - $html_template = new TemplateResponse('registration', 'email_html', $template_var, 'blank'); + $html_template = new TemplateResponse('registration', 'email.validate_html', $template_var, 'blank'); $html_part = $html_template->render(); - $plaintext_template = new TemplateResponse('registration', 'email_plaintext', $template_var, 'blank'); + $plaintext_template = new TemplateResponse('registration', 'email.validate_plaintext', $template_var, 'blank'); $plaintext_part = $plaintext_template->render(); $subject = $this->l10n->t('Verify your %s registration request', [$this->defaults->getName()]); diff --git a/templates/email_html.php b/templates/email.validate_html.php similarity index 100% rename from templates/email_html.php rename to templates/email.validate_html.php diff --git a/templates/email_plaintext.php b/templates/email.validate_plaintext.php similarity index 100% rename from templates/email_plaintext.php rename to templates/email.validate_plaintext.php