Updated more static urls.

This commit is contained in:
flash 2019-02-12 15:12:58 +01:00
parent c60faa9607
commit 181f56bfc7
3 changed files with 6 additions and 6 deletions

View file

@ -40,7 +40,7 @@ switch ($authMode) {
case 'logout':
if (!user_session_active()) {
header('Location: /');
header(sprintf('Location: %s', url('index')));
return;
}
@ -48,7 +48,7 @@ switch ($authMode) {
set_cookie_m('uid', '', -3600);
set_cookie_m('sid', '', -3600);
user_session_stop(true);
header('Location: /');
header(sprintf('Location: %s', url('index')));
return;
}
@ -130,7 +130,7 @@ switch ($authMode) {
case 'forgot':
if (user_session_active() || !$canResetPassword) {
header('Location: /');
header(sprintf('Location: %s', url('index')));
break;
}

View file

@ -47,7 +47,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
if ($currentSessionKilled) {
header('Location: /');
header(sprintf('Location: %s', url('index')));
return;
}
}

View file

@ -69,8 +69,8 @@ function comments_parse_for_display(string $text): string
}
return sprintf(
'<a href="/profile.php?u=%d" class="comment__mention", style="%s">@%s</a>',
$info['user_id'],
'<a href="%s" class="comment__mention", style="%s">@%s</a>',
url('user-profile', ['user' => $info['user_id']]),
html_colour($info['user_colour']),
$info['username']
);