From 798e98420547853e133d643d6246152434f0d05e Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Tue, 21 Oct 2014 23:21:38 +0800 Subject: [PATCH] Fix message template layout, and it should be rendered as guest page --- controller/registercontroller.php | 6 +++--- templates/message.php | 11 +++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/controller/registercontroller.php b/controller/registercontroller.php index 5b3885e..1bf940b 100644 --- a/controller/registercontroller.php +++ b/controller/registercontroller.php @@ -89,9 +89,9 @@ class RegisterController extends Controller { \OC_Template::printErrorPage( 'A problem occurs during sending the e-mail please contact your administrator.'); return; } - return new TemplateResponse('registration', 'message', array('msgs' => + return new TemplateResponse('registration', 'message', array('msg' => $this->l10n->t('Verification email successfully sent.') - )); + ), 'guest'); } /** @@ -148,7 +148,7 @@ class RegisterController extends Controller { } return new TemplateResponse('registration', 'message', array('msgs' => $this->l10n->t('Your account has been successfully created, you can log in now.') - )); + ), 'guest'); } } } diff --git a/templates/message.php b/templates/message.php index 0d5f15d..7813d9f 100644 --- a/templates/message.php +++ b/templates/message.php @@ -1,7 +1,6 @@ -