Using constant links 2

Использование заранее определенных констант для ссылок
Небольшая правка
This commit is contained in:
Dark Nightmare 2014-08-11 00:45:30 +06:00
commit d4be38e088
2 changed files with 2 additions and 2 deletions

View file

@ -202,7 +202,7 @@ if ($result = DB()->fetch_rowset($sql))
'PM' => $pm, 'PM' => $pm,
'EMAIL' => $email, 'EMAIL' => $email,
'WWW' => $www, 'WWW' => $www,
'U_VIEWPROFILE' => "profile.php?mode=viewprofile&". POST_USERS_URL ."=$user_id", 'U_VIEWPROFILE' => PROFILE_URL . $user_id,
)); ));
} }
} }

View file

@ -68,7 +68,7 @@ if (!$is_auth['auth_view'])
{ {
if (IS_GUEST) if (IS_GUEST)
{ {
$redirect .= ($start) ? "&start=$start" : ''; $redirect = ($start) ? "&start=$start" : '';
redirect(LOGIN_URL . "?redirect=". FORUM_URL . $forum_id ."&$redirect"); redirect(LOGIN_URL . "?redirect=". FORUM_URL . $forum_id ."&$redirect");
} }
// The user is not authed to read this forum ... // The user is not authed to read this forum ...