diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2004-09-01 08:42:12 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-09-01 08:42:12 +0000 |
commit | 3c8e36b458742116a41f90421e20251df97c528c (patch) | |
tree | afc41488129dc41b7dd061e287c3e651fdda8adb | |
parent | ec5521438e27062df35b3b2971b3f896d309fc1a (diff) | |
download | forums-3c8e36b458742116a41f90421e20251df97c528c.tar forums-3c8e36b458742116a41f90421e20251df97c528c.tar.gz forums-3c8e36b458742116a41f90421e20251df97c528c.tar.bz2 forums-3c8e36b458742116a41f90421e20251df97c528c.tar.xz forums-3c8e36b458742116a41f90421e20251df97c528c.zip |
- now notification redirection working... ?!
git-svn-id: file:///svn/phpbb/trunk@4969 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/viewtopic.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 301a9b05b3..56e4bf2a22 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -258,7 +258,7 @@ if (!$auth->acl_get('f_read', $forum_id)) trigger_error($user->lang['SORRY_AUTH_READ']); } - login_box($user->cur_page, '', $user->lang['LOGIN_VIEWFORUM']); + login_box($user->cur_page, '', $user->lang['LOGIN_VIEWTOPIC']); } // Forum is passworded ... check whether access has been granted to this @@ -272,17 +272,16 @@ if ($forum_password) if (isset($_GET['e'])) { $jump_to = (int) $_GET['e']; - - $redirect_url = str_replace('&e=' . $jump_to, '', $_SERVER['REQUEST_URI']) . (($jump_to) ? '#' . $jump_to : ''); + $redirect_url = "{$phpbb_root_path}viewtopic.$phpEx$SID&f=$forum_id&t=$topic_id"; if ($user->data['user_id'] == ANONYMOUS) { - login_box(preg_replace('#.*?([a-z]+?\.' . $phpEx . '.*?)$#i', '\1', htmlspecialchars($redirect_url)), '', $user->lang['LOGIN_NOTIFY_TOPIC']); + login_box($redirect_url . "&p=$post_id&e=$jump_to", '', $user->lang['LOGIN_NOTIFY_TOPIC']); } else if ($jump_to > 0) { // We direct the already logged in user to the correct post... - redirect(preg_replace('#^' . $config['script_path'] . '#', '', $redirect_url)); + redirect($redirect_url . ((!$post_id) ? "&p=$jump_to" : "&p=$post_id") . "#$jump_to"); } } |