mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11103] Add topic ID to view post URL
PHPBB3-11103
This commit is contained in:
@@ -143,7 +143,7 @@ class phpbb_notifications_type_post extends phpbb_notifications_type_base
|
||||
*/
|
||||
public function get_url()
|
||||
{
|
||||
return append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "p={$this->item_id}#p{$this->item_id}");
|
||||
return append_sid($this->phpbb_root_path . 'viewtopic.' . $this->php_ext, "t={$this->get_data('topic_id')}&p={$this->item_id}#p{$this->item_id}");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -153,7 +153,7 @@ class phpbb_notifications_type_post extends phpbb_notifications_type_base
|
||||
*/
|
||||
public function get_full_url()
|
||||
{
|
||||
return generate_board_url() . "/viewtopic.{$this->php_ext}?p={$this->item_id}#p{$this->item_id}";
|
||||
return generate_board_url() . "/viewtopic.{$this->php_ext}?t={$this->get_data('topic_id')}&p={$this->item_id}#p{$this->item_id}";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -178,6 +178,8 @@ class phpbb_notifications_type_post extends phpbb_notifications_type_base
|
||||
{
|
||||
$this->item_id = $post['post_id'];
|
||||
|
||||
$this->set_data('topic_id', $post['topic_id']);
|
||||
|
||||
$this->set_data('poster_id', $post['poster_id']);
|
||||
|
||||
$this->set_data('topic_title', $post['topic_title']);
|
||||
|
Reference in New Issue
Block a user