diff --git a/controller/registercontroller.php b/controller/registercontroller.php index 94d5e39..5b3885e 100644 --- a/controller/registercontroller.php +++ b/controller/registercontroller.php @@ -89,13 +89,9 @@ class RegisterController extends Controller { \OC_Template::printErrorPage( 'A problem occurs during sending the e-mail please contact your administrator.'); return; } - // TODO: below is not an error, should add "message" template - return new TemplateResponse('', 'error', array( - 'errors' => array(array( - 'error' => $this->l10n->t('Verification email successfully sent.'), - 'hint' => '' - )) - ), 'error'); + return new TemplateResponse('registration', 'message', array('msgs' => + $this->l10n->t('Verification email successfully sent.') + )); } /** @@ -150,15 +146,9 @@ class RegisterController extends Controller { )) ), 'error'); } - // TODO: below is not an error, should add "message" template - return new TemplateResponse('', 'error', array( - 'errors' => array(array( - 'error' => str_replace('{link}', - $this->urlgenerator->getAbsoluteUrl('/'), - $this->l10n->t('Your account has been successfully created, you can log in now.')), - 'hint' => '' - )) - ), 'error'); + return new TemplateResponse('registration', 'message', array('msgs' => + $this->l10n->t('Your account has been successfully created, you can log in now.') + )); } } } diff --git a/templates/message.php b/templates/message.php index e134330..0d5f15d 100644 --- a/templates/message.php +++ b/templates/message.php @@ -1,14 +1,7 @@ -'; - foreach ( $_['errors'] as $error ) { ?> -
  • - '; -} -if ( $_['messages'] ) { - echo '