diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-11-18 19:50:19 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-11-18 19:50:19 +0100 |
commit | f21a43be2fb381c3a7cf1894f4a064b33ab5eb1f (patch) | |
tree | f7c07b50ed26106dd6b71a29e0af3f4d54f00b76 /phpBB | |
parent | 3606cce27ff6824b0364ad1f2c00d3ebf159de41 (diff) | |
parent | f3b94b118a6aa784deab101ff90d1ff39879095a (diff) | |
download | forums-f21a43be2fb381c3a7cf1894f4a064b33ab5eb1f.tar forums-f21a43be2fb381c3a7cf1894f4a064b33ab5eb1f.tar.gz forums-f21a43be2fb381c3a7cf1894f4a064b33ab5eb1f.tar.bz2 forums-f21a43be2fb381c3a7cf1894f4a064b33ab5eb1f.tar.xz forums-f21a43be2fb381c3a7cf1894f4a064b33ab5eb1f.zip |
Merge pull request #5441 from 3D-I/ticket/15870
[ticket/15870] Add core.viewtopic_modify_forum_id
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/viewtopic.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 0cbb5284c7..eb2d52cf61 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -263,6 +263,20 @@ if (!$topic_data) $forum_id = (int) $topic_data['forum_id']; +/** + * Modify the forum ID to handle the correct display of viewtopic if needed + * + * @event core.viewtopic_modify_forum_id + * @var string forum_id forum ID + * @var array topic_data array of topic's data + * @since 3.2.5-RC1 + */ +$vars = array( + 'forum_id', + 'topic_data', +); +extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_forum_id', compact($vars))); + // If the request is missing the f parameter, the forum id in the user session data is 0 at the moment. // Let's fix that now so that the user can't hide from the forum's Who Is Online list. $user->page['forum'] = $forum_id; |