aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-06-20 16:43:08 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:52 +0200
commitbdfedba521ee38ef6b8915bfb130b2f164c040c0 (patch)
treeae52fa246e4db022a38c981aecbdaad687a2b3ae /phpBB/includes/functions_display.php
parentb1582ece91e7ebd9f635040bbb1a4c6c47786135 (diff)
downloadforums-bdfedba521ee38ef6b8915bfb130b2f164c040c0.tar
forums-bdfedba521ee38ef6b8915bfb130b2f164c040c0.tar.gz
forums-bdfedba521ee38ef6b8915bfb130b2f164c040c0.tar.bz2
forums-bdfedba521ee38ef6b8915bfb130b2f164c040c0.tar.xz
forums-bdfedba521ee38ef6b8915bfb130b2f164c040c0.zip
[feature/php-events] Make handling of forumrow consistent with others
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index ca2bfc3b65..9ab90a6482 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -452,7 +452,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
}
}
- $template->assign_block_vars('forumrow', array(
+ $forum_row = array(
'S_IS_CAT' => false,
'S_NO_CAT' => $catless && !$last_catless,
'S_IS_LINK' => ($row['forum_type'] == FORUM_LINK) ? true : false,
@@ -489,12 +489,14 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
'U_UNAPPROVED_TOPICS' => ($row['forum_id_unapproved_topics']) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&amp;mode=unapproved_topics&amp;f=' . $row['forum_id_unapproved_topics']) : '',
'U_VIEWFORUM' => $u_viewforum,
'U_LAST_POSTER' => get_username_string('profile', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']),
- 'U_LAST_POST' => $last_post_url)
+ 'U_LAST_POST' => $last_post_url,
);
- $vars = array('row');
+ $vars = array('row', 'forum_row');
extract($phpbb_dispatcher->trigger_event('core.display_forums_assign_block_vars', compact($vars)));
+ $template->assign_block_vars('forumrow', $forum_row);
+
// Assign subforums loop for style authors
foreach ($subforums_list as $subforum)
{