aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-05 20:40:15 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-05 20:40:15 +0100
commitef00adac8b6f3be06f76fa14df35c8e3d06b40af (patch)
tree570b5713a8b25361410f00f1b99bd5e414eff988
parent3aad3f0b3f4ba479e77d5c2819db6ebbb0a40325 (diff)
parent7a34bf9bf597998ba39d5f15f5c931898981621b (diff)
downloadforums-ef00adac8b6f3be06f76fa14df35c8e3d06b40af.tar
forums-ef00adac8b6f3be06f76fa14df35c8e3d06b40af.tar.gz
forums-ef00adac8b6f3be06f76fa14df35c8e3d06b40af.tar.bz2
forums-ef00adac8b6f3be06f76fa14df35c8e3d06b40af.tar.xz
forums-ef00adac8b6f3be06f76fa14df35c8e3d06b40af.zip
Merge branch 'develop-ascraeus' into develop
-rw-r--r--phpBB/viewforum.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index ce079cb262..97a979ed13 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -887,6 +887,28 @@ if (sizeof($topic_list))
$s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0;
+ /**
+ * Event after the topic data has been assigned to the template
+ *
+ * @event core.viewforum_topic_row_after
+ * @var array row Array with the topic data
+ * @var array rowset Array with topics data (in topic_id => topic_data format)
+ * @var bool s_type_switch Flag indicating if the topic type is [global] announcement
+ * @var int topic_id The topic ID
+ * @var array topic_list Array with current viewforum page topic ids
+ * @var array topic_row Template array with topic data
+ * @since 3.1.3-RC1
+ */
+ $vars = array(
+ 'row',
+ 'rowset',
+ 's_type_switch',
+ 'topic_id',
+ 'topic_list',
+ 'topic_row',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.viewforum_topic_row_after', compact($vars)));
+
if ($unread_topic)
{
$mark_forum_read = false;