Fix message template layout, and it should be rendered as guest page

This commit is contained in:
Pellaeon Lin 2014-10-21 23:21:38 +08:00
parent 3c8725b556
commit 798e984205
2 changed files with 8 additions and 9 deletions

View File

@ -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 <a href="{link}">log in now</a>.')
));
), 'guest');
}
}
}

View File

@ -1,7 +1,6 @@
<ul class="error-wide">
<?php foreach($_["msgs"] as $msg):?>
<li class='msg'>
<?php print_unesacped($msg) ?><br/>
</li>
<?php endforeach ?>
<?php
\OCP\Util::addStyle('registration', 'style');
?>
<ul class="msg error-wide">
<li><?php print_unescaped($_['msg']) ?></li>
</ul>