diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-06 17:05:22 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-06 17:05:22 +0200 |
commit | c277c240f83780b527511339068bd25d793712a9 (patch) | |
tree | 69a8ee7dcd695196fddcfff2e40c02a5808d4826 /phpBB/viewtopic.php | |
parent | dcb4d3b92612faefc9c7b08c843be24f79d31c21 (diff) | |
download | forums-c277c240f83780b527511339068bd25d793712a9.tar forums-c277c240f83780b527511339068bd25d793712a9.tar.gz forums-c277c240f83780b527511339068bd25d793712a9.tar.bz2 forums-c277c240f83780b527511339068bd25d793712a9.tar.xz forums-c277c240f83780b527511339068bd25d793712a9.zip |
[feature/php-events] Fix doc and naming of core.viewtopic_modify_page_title
PHPBB3-9550
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 0881fb3e48..43aacbff0c 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1784,8 +1784,18 @@ if (!request_var('t', 0) && !empty($topic_id)) $page_title = $topic_data['topic_title'] . ($start ? ' - ' . sprintf($user->lang['PAGE_TITLE_NUMBER'], floor($start / $config['posts_per_page']) + 1) : ''); +/** +* You can use this event to modify the page title of the viewtopic page +* +* @event core.viewtopic_modify_page_title +* @var string page_title Title of the index page +* @var array topic_data Array with topic data +* @var int forum_id Forum ID of the topic +* @var int start Start offset used to calculate the page +* @since 3.1-A1 +*/ $vars = array('page_title', 'topic_data', 'forum_id', 'start'); -extract($phpbb_dispatcher->trigger_event('core.viewtopic_page_header', compact($vars))); +extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_page_title', compact($vars))); // Output the page page_header($page_title, true, $forum_id); |