mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11103] Bug fixing
PHPBB3-11103
This commit is contained in:
parent
98731b1277
commit
3897a442f7
2 changed files with 5 additions and 1 deletions
|
@ -2229,6 +2229,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||
$phpbb_notifications->add_notifications(array('topic', 'quote'), array_merge($data, array(
|
||||
'post_username' => $username,
|
||||
'poster_id' => (int) $user->data['user_id'],
|
||||
'post_time' => $current_time,
|
||||
)));
|
||||
break;
|
||||
|
||||
|
@ -2238,6 +2239,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||
'post_username' => $username,
|
||||
'poster_id' => (int) $user->data['user_id'],
|
||||
'post_text' => $data['message'],
|
||||
'post_time' => $current_time,
|
||||
)));
|
||||
break;
|
||||
|
||||
|
@ -2265,6 +2267,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||
$phpbb_notifications->add_notifications(array('topic_in_queue'), array_merge($data, array(
|
||||
'post_username' => $username,
|
||||
'poster_id' => (int) $user->data['user_id'],
|
||||
'post_time' => $current_time,
|
||||
)));
|
||||
break;
|
||||
|
||||
|
@ -2273,6 +2276,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||
$phpbb_notifications->add_notifications(array('post_in_queue'), array_merge($data, array(
|
||||
'post_username' => $username,
|
||||
'poster_id' => (int) $user->data['user_id'],
|
||||
'post_time' => $current_time,
|
||||
)));
|
||||
break;
|
||||
|
||||
|
|
|
@ -215,7 +215,7 @@ class phpbb_notifications_type_post extends phpbb_notifications_type_base
|
|||
|
||||
$this->set_data('post_subject', $post['post_subject']);
|
||||
|
||||
$this->set_data('post_username', (($post['post_username'] != $this->phpbb_container->get('user')->data['username']) ? $post['post_username'] : ''));
|
||||
$this->set_data('post_username', (($post['poster_id'] == ANONYMOUS) ? $post['post_username'] : ''));
|
||||
|
||||
$this->set_data('forum_id', $post['forum_id']);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue