1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 20:11:46 +02:00

Fix formatting on ProcessLogin::getLoginLinks

This commit is contained in:
Ryan Cramer
2020-05-31 17:45:11 -04:00
parent 9b43b4fb96
commit cd4bd7073c

View File

@@ -727,11 +727,20 @@ class ProcessLogin extends Process implements ConfigurableModule {
if($this->allowForgot) { if($this->allowForgot) {
$icon = $this->markup('forgot-icon'); $icon = $this->markup('forgot-icon');
$label = $this->labels('forgot-password'); $label = $this->labels('forgot-password');
$links['forgot'] = str_replace(array('{url}', '{out}'), array('./?forgot=1', "$icon $label"), $markup); $links['forgot'] = str_replace(
array('{url}', '{out}'),
array('./?forgot=1', "$icon $label"),
$markup
);
} }
$home = $this->pages->get('/'); $home = $this->pages->get('/');
$icon = $this->markup('home-icon'); $icon = $this->markup('home-icon');
$links['home'] = str_replace(array('{url}', '{out}'), array($home->url, "$icon $home->title"), $markup); $label = $home->getFormatted('title');
$links['home'] = str_replace(
array('{url}', '{out}'),
array($home->url, "$icon $label"),
$markup
);
return $links; return $links;
} }