aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-05-05 22:48:17 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-05-05 22:48:17 +0000
commit9551bfbc5236aed8af8ed3fe6d6f4631d630bfbc (patch)
tree595afed6d91efaf07647049d7f7f04bd6ab96377 /phpBB/viewtopic.php
parentbecf5f5199df27f82c7dac0954211d21f5a15ba7 (diff)
downloadforums-9551bfbc5236aed8af8ed3fe6d6f4631d630bfbc.tar
forums-9551bfbc5236aed8af8ed3fe6d6f4631d630bfbc.tar.gz
forums-9551bfbc5236aed8af8ed3fe6d6f4631d630bfbc.tar.bz2
forums-9551bfbc5236aed8af8ed3fe6d6f4631d630bfbc.tar.xz
forums-9551bfbc5236aed8af8ed3fe6d6f4631d630bfbc.zip
email topic, minor other changes, removed updating of parent forums upon posting (handled by functions_display)
git-svn-id: file:///svn/phpbb/trunk@3980 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 008ae24feb..1b28758072 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -453,7 +453,7 @@ $template->assign_vars(array(
'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url,
'U_VIEW_NEWER_TOPIC' => $view_next_topic_url,
'U_PRINT_TOPIC' => "viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=$topic_id&amp;$u_sort_param&amp;view=print",
- 'U_EMAIL_TOPIC' => "viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=$topic_id&amp;view=email",
+ 'U_EMAIL_TOPIC' => "memberlist.$phpEx$SID&amp;mode=email&amp;t=$topic_id",
'U_POST_NEW_TOPIC' => $new_topic_url,
'U_POST_REPLY_TOPIC' => $reply_topic_url)
@@ -802,9 +802,9 @@ do
}
}
- if (!empty($row['user_viewemail']) || $auth->acl_gets('m_', 'a_', $forum_id))
+ if ((!empty($row['user_viewemail']) || $auth->acl_get('m_', $forum_id)) && $config['email_enable'])
{
- $email_url = ($config['board_email_form'] && $config['email_enable']) ? "ucp.$phpEx$SID&amp;mode=email&amp;u=" . $poster_id : 'mailto:' . $row['user_email'];
+ $email_url = ($config['board_email_form']) ? "memberlist.$phpEx$SID&amp;mode=email&amp;u=" . $poster_id : 'mailto:' . $row['user_email'];
$user_cache[$poster_id]['email_img'] = '<a href="' . $email_url . '">' . $user->img('btn_email', $user->lang['SEND_EMAIL']) . '</a>';
$user_cache[$poster_id]['email'] = '<a href="' . $email_url . '">' . $user->lang['SEND_EMAIL'] . '</a>';
}