p already writes the text, no need to echo
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
ab641685ed
commit
ea57938c2b
|
|
@ -19,9 +19,9 @@ style('registration', 'style');
|
||||||
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']); ?>" />
|
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']); ?>" />
|
||||||
<input type="submit" id="submit" value="<?php
|
<input type="submit" id="submit" value="<?php
|
||||||
if ($_['disable_email_verification'] === 'yes') {
|
if ($_['disable_email_verification'] === 'yes') {
|
||||||
echo p($l->t('Start register process'));
|
p($l->t('Continue'));
|
||||||
} else {
|
} 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')) ?>">
|
<a id="lost-password-back" href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('core.login.showLoginForm')) ?>">
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ class RegisterControllerTest extends TestCase {
|
||||||
public function testShowEmailForm(string $email, string $message): void {
|
public function testShowEmailForm(string $email, string $message): void {
|
||||||
$controller = $this->getController();
|
$controller = $this->getController();
|
||||||
$response = $controller->showEmailForm($email, $message);
|
$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(TemplateResponse::RENDER_AS_GUEST, $response->getRenderAs());
|
||||||
self::assertSame('form/email', $response->getTemplateName());
|
self::assertSame('form/email', $response->getTemplateName());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue