Signed-off-by: Christopher Ng <chrng8@gmail.com>
$parameters = [
'alt_login' => OC_App::getAlternativeLogIns(),
+ 'pageTitle' => $this->l10n->t('Login'),
];
$this->initialStateService->provideInitialState('core', 'countAlternativeLogins', count($parameters['alt_login']));
return new TemplateResponse(
- $this->appName, 'login', $parameters, 'guest'
+ $this->appName,
+ 'login',
+ $parameters,
+ TemplateResponse::RENDER_AS_GUEST,
);
}
data-requesttoken="<?php p($_['requesttoken']); ?>">
<meta charset="utf-8">
<title>
- <?php p($theme->getTitle()); ?>
+ <?php
+ p(!empty($_['pageTitle']) ? $_['pageTitle'] . ' – ' : '');
+ p($theme->getTitle());
+ ?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<?php if ($theme->getiTunesAppId() !== '') { ?>