aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-03-02 01:05:38 +0100
committerNils Adermann <naderman@naderman.de>2010-03-02 01:05:38 +0100
commitee781806ebff950e9c645e80686f2d1d9b9545be (patch)
treee01ec016af6191927fd24dbf4d180bcf22711fc5 /phpBB/viewtopic.php
parent5324afeffd84810db3cac6e1d8dfec3678ab99c6 (diff)
parente2ef99012194cd320c44ba70013988dcac96cae5 (diff)
downloadforums-ee781806ebff950e9c645e80686f2d1d9b9545be.tar
forums-ee781806ebff950e9c645e80686f2d1d9b9545be.tar.gz
forums-ee781806ebff950e9c645e80686f2d1d9b9545be.tar.bz2
forums-ee781806ebff950e9c645e80686f2d1d9b9545be.tar.xz
forums-ee781806ebff950e9c645e80686f2d1d9b9545be.zip
Merge commit 'release-3.0.2-RC1'
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index daae349401..0fafefad1e 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -451,9 +451,16 @@ $s_watching_topic = array(
'is_watching' => false,
);
-if ($config['email_enable'] && $config['allow_topic_notify'] && $user->data['is_registered'])
+if (($config['email_enable'] || $config['jab_enable']) && $config['allow_topic_notify'] && $user->data['is_registered'])
{
watch_topic_forum('topic', $s_watching_topic, $user->data['user_id'], $forum_id, $topic_id, $topic_data['notify_status'], $start);
+
+ // Reset forum notification if forum notify is set
+ if ($config['allow_forum_notify'] && $auth->acl_get('f_subscribe', $forum_id))
+ {
+ $s_watching_forum = $s_watching_topic;
+ watch_topic_forum('forum', $s_watching_forum, $user->data['user_id'], $forum_id, 0);
+ }
}
// Bookmarks
@@ -1003,7 +1010,6 @@ while ($row = $db->sql_fetchrow($result))
'rank_image' => '',
'rank_image_src' => '',
'sig' => '',
- 'posts' => '',
'profile' => '',
'pm' => '',
'email' => '',
@@ -1066,7 +1072,7 @@ while ($row = $db->sql_fetchrow($result))
'msn' => ($row['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&amp;action=msnm&amp;u=$poster_id") : '',
'yim' => ($row['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($row['user_yim']) . '&amp;.src=pg' : '',
'jabber' => ($row['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&amp;action=jabber&amp;u=$poster_id") : '',
- 'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'search_author=' . urlencode($row['username']) .'&amp;showresults=posts') : '',
+ 'search' => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'search_author=' . urlencode($row['username']) .'&amp;sr=posts') : '',
);
get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);