p already writes the text, no need to echo

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-11-17 19:58:00 +01:00
parent ab641685ed
commit ea57938c2b
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ style('registration', 'style');
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']); ?>" />
<input type="submit" id="submit" value="<?php
if ($_['disable_email_verification'] === 'yes') {
echo p($l->t('Start register process'));
p($l->t('Continue'));
} else {
echo p($l->t('Request verification link'));
p($l->t('Request verification link'));
}?>" />
<a id="lost-password-back" href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('core.login.showLoginForm')) ?>">

View File

@ -125,7 +125,7 @@ class RegisterControllerTest extends TestCase {
public function testShowEmailForm(string $email, string $message): void {
$controller = $this->getController();
$response = $controller->showEmailForm($email, $message);
$disable_email_verification = $this->config->getAppValue("registration", 'disable_email_verification', 'no');
$disable_email_verification = $this->config->getAppValue('registration', 'disable_email_verification', 'no');
self::assertSame(TemplateResponse::RENDER_AS_GUEST, $response->getRenderAs());
self::assertSame('form/email', $response->getTemplateName());