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.'); \OC_Template::printErrorPage( 'A problem occurs during sending the e-mail please contact your administrator.');
return; return;
} }
return new TemplateResponse('registration', 'message', array('msgs' => return new TemplateResponse('registration', 'message', array('msg' =>
$this->l10n->t('Verification email successfully sent.') $this->l10n->t('Verification email successfully sent.')
)); ), 'guest');
} }
/** /**
@ -148,7 +148,7 @@ class RegisterController extends Controller {
} }
return new TemplateResponse('registration', 'message', array('msgs' => 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>.') $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
<?php foreach($_["msgs"] as $msg):?> \OCP\Util::addStyle('registration', 'style');
<li class='msg'> ?>
<?php print_unesacped($msg) ?><br/> <ul class="msg error-wide">
</li> <li><?php print_unescaped($_['msg']) ?></li>
<?php endforeach ?>
</ul> </ul>