mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
730e472fb3
1 changed files with 20 additions and 0 deletions
|
@ -937,6 +937,26 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||||
|
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Modify the row of a post result before the post_text is trimmed
|
||||||
|
*
|
||||||
|
* @event core.search_modify_post_row
|
||||||
|
* @var string hilit String to highlight
|
||||||
|
* @var array row Array with the post data
|
||||||
|
* @var string u_hilit Highlight string to be injected into URL
|
||||||
|
* @var string view Search results view mode
|
||||||
|
* @var array zebra Array with zebra data for the current user
|
||||||
|
* @since 3.2.2-RC1
|
||||||
|
*/
|
||||||
|
$vars = array(
|
||||||
|
'hilit',
|
||||||
|
'row',
|
||||||
|
'u_hilit',
|
||||||
|
'view',
|
||||||
|
'zebra',
|
||||||
|
);
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.search_modify_post_row', compact($vars)));
|
||||||
|
|
||||||
// We pre-process some variables here for later usage
|
// We pre-process some variables here for later usage
|
||||||
$row['post_text'] = censor_text($row['post_text']);
|
$row['post_text'] = censor_text($row['post_text']);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue