mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/php-events] Make naming of topicrow consistent with others (topic_row)
PHPBB3-9550
This commit is contained in:
parent
bdfedba521
commit
b288444915
1 changed files with 3 additions and 3 deletions
|
@ -690,7 +690,7 @@ if (sizeof($topic_list))
|
||||||
$u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&t=$topic_id", true, $user->session_id) : '';
|
$u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&t=$topic_id", true, $user->session_id) : '';
|
||||||
|
|
||||||
// Send vars to template
|
// Send vars to template
|
||||||
$topicrow = array(
|
$topic_row = array(
|
||||||
'FORUM_ID' => $row['forum_id'],
|
'FORUM_ID' => $row['forum_id'],
|
||||||
'TOPIC_ID' => $topic_id,
|
'TOPIC_ID' => $topic_id,
|
||||||
'TOPIC_AUTHOR' => get_username_string('username', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']),
|
'TOPIC_AUTHOR' => get_username_string('username', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']),
|
||||||
|
@ -745,10 +745,10 @@ if (sizeof($topic_list))
|
||||||
'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test,
|
'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test,
|
||||||
);
|
);
|
||||||
|
|
||||||
$vars = array('row', 'topicrow');
|
$vars = array('row', 'topic_row');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.viewforum_topicrow', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.viewforum_topicrow', compact($vars)));
|
||||||
|
|
||||||
$template->assign_block_vars('topicrow', $topicrow);
|
$template->assign_block_vars('topicrow', $topic_row);
|
||||||
|
|
||||||
phpbb_generate_template_pagination($template, $view_topic_url, 'topicrow.pagination', 'start', $replies + 1, $config['posts_per_page'], 1, true, true);
|
phpbb_generate_template_pagination($template, $view_topic_url, 'topicrow.pagination', 'start', $replies + 1, $config['posts_per_page'], 1, true, true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue