aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-12-03 16:01:57 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-12-03 16:01:57 +0100
commit17e8726582df3e3115893668c7b1ea39b87028ba (patch)
treef4c130ca4609584354ec717a71bddc1a71c79272 /phpBB/viewtopic.php
parentdfc5a2b7cd51ab688f8c1768a15b5ebd9935c527 (diff)
parent5505f98aad86767f45ea8c2ad3f31128d0893812 (diff)
downloadforums-17e8726582df3e3115893668c7b1ea39b87028ba.tar
forums-17e8726582df3e3115893668c7b1ea39b87028ba.tar.gz
forums-17e8726582df3e3115893668c7b1ea39b87028ba.tar.bz2
forums-17e8726582df3e3115893668c7b1ea39b87028ba.tar.xz
forums-17e8726582df3e3115893668c7b1ea39b87028ba.zip
Merge branch '3.1.x' into 3.2.x
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 4325fafb43..9199354920 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -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))
{