1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-31 19:49:20 +02:00

Merge branch '3.2.x'

This commit is contained in:
Marc Alexander 2016-12-03 16:02:00 +01:00
commit e978a5e5ec
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -498,6 +498,28 @@ if ($config['allow_topic_notify'])
}
}
/**
* Event to modify highlight.
*
* @event core.viewtopic_highlight_modify
* @var string highlight String to be highlighted
* @var string highlight_match Highlight string to be used in preg_replace
* @var array topic_data Topic data
* @var int start Pagination start
* @var int total_posts Number of posts
* @var string viewtopic_url Current viewtopic URL
* @since 3.1.11-RC1
*/
$vars = array(
'highlight',
'highlight_match',
'topic_data',
'start',
'total_posts',
'viewtopic_url',
);
extract($phpbb_dispatcher->trigger_event('core.viewtopic_highlight_modify', compact($vars)));
// Bookmarks
if ($config['allow_bookmarks'] && $user->data['is_registered'] && $request->variable('bookmark', 0))
{