1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-07 08:05:25 +02:00

[feature/events] Adding ledge viewtopic_page_header

Used by phpBB Gallery

PHPBB3-9550
This commit is contained in:
Joas Schilling 2012-03-16 10:30:28 +01:00
parent 3339935db3
commit a47ac64e5f

View File

@ -1734,8 +1734,15 @@ if (!request_var('t', 0) && !empty($topic_id))
$request->overwrite('t', $topic_id);
}
$page_title = $topic_data['topic_title'] . ($start ? ' - ' . sprintf($user->lang['PAGE_TITLE_NUMBER'], floor($start / $config['posts_per_page']) + 1) : '');
$vars = array('page_title', 'topic_data', 'forum_id', 'start');
$event = new phpbb_event_data(compact($vars));
$phpbb_dispatcher->dispatch('core.viewtopic_page_header', $event);
extract($event->get_data_filtered($vars));
// Output the page
page_header($topic_data['topic_title'] . ($start ? ' - ' . sprintf($user->lang['PAGE_TITLE_NUMBER'], floor($start / $config['posts_per_page']) + 1) : ''), true, $forum_id);
page_header($page_title, true, $forum_id);
$template->set_filenames(array(
'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')