From d4be38e08855bb4d95f5620f74964388fac17734 Mon Sep 17 00:00:00 2001 From: Dark Nightmare Date: Mon, 11 Aug 2014 00:45:30 +0600 Subject: [PATCH] Using constant links 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Использование заранее определенных констант для ссылок Небольшая правка --- upload/memberlist.php | 2 +- upload/viewforum.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/memberlist.php b/upload/memberlist.php index 91cd53ca7..fc0ff96bd 100644 --- a/upload/memberlist.php +++ b/upload/memberlist.php @@ -202,7 +202,7 @@ if ($result = DB()->fetch_rowset($sql)) 'PM' => $pm, 'EMAIL' => $email, 'WWW' => $www, - 'U_VIEWPROFILE' => "profile.php?mode=viewprofile&". POST_USERS_URL ."=$user_id", + 'U_VIEWPROFILE' => PROFILE_URL . $user_id, )); } } diff --git a/upload/viewforum.php b/upload/viewforum.php index 105831625..87f012a21 100644 --- a/upload/viewforum.php +++ b/upload/viewforum.php @@ -68,7 +68,7 @@ if (!$is_auth['auth_view']) { if (IS_GUEST) { - $redirect .= ($start) ? "&start=$start" : ''; + $redirect = ($start) ? "&start=$start" : ''; redirect(LOGIN_URL . "?redirect=". FORUM_URL . $forum_id ."&$redirect"); } // The user is not authed to read this forum ...