aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-03 23:26:50 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-03 23:32:48 +0200
commit63d17e51813f1b80fd5c2ee33bcc67603c8da78b (patch)
tree271ac7ed3f5ad8202f3cee06773860a5406ef5f2
parentfab13f75590e33beeda2a12bb9653b1fd0ec60bf (diff)
downloadforums-63d17e51813f1b80fd5c2ee33bcc67603c8da78b.tar
forums-63d17e51813f1b80fd5c2ee33bcc67603c8da78b.tar.gz
forums-63d17e51813f1b80fd5c2ee33bcc67603c8da78b.tar.bz2
forums-63d17e51813f1b80fd5c2ee33bcc67603c8da78b.tar.xz
forums-63d17e51813f1b80fd5c2ee33bcc67603c8da78b.zip
[feature/php-events] Fix naming and doc of core.viewforum_modify_topicrow
PHPBB3-9550
-rw-r--r--phpBB/viewforum.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index df5678def1..adf875114b 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -745,8 +745,16 @@ if (sizeof($topic_list))
'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test,
);
+ /**
+ * Modify the topic data before it is assigned to the template
+ *
+ * @event core.viewforum_modify_topicrow
+ * @var array row Array with topic data
+ * @var array topic_row Template array with topic data
+ * @since 3.1-A1
+ */
$vars = array('row', 'topic_row');
- extract($phpbb_dispatcher->trigger_event('core.viewforum_topicrow', compact($vars)));
+ extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_topicrow', compact($vars)));
$template->assign_block_vars('topicrow', $topic_row);