diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-04 16:35:03 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-04 16:35:03 +0200 |
commit | 40e28ac56b3ea06133a8c2146e512ffbf252dd79 (patch) | |
tree | 2ac1663dabd94658bf832bcb970063b4260de32f /phpBB/search.php | |
parent | 1e66500d2c71231109f959ef1e7783c3b37a4ef5 (diff) | |
parent | 67c26623ed54e94acb1047021359f17856c098b4 (diff) | |
download | forums-40e28ac56b3ea06133a8c2146e512ffbf252dd79.tar forums-40e28ac56b3ea06133a8c2146e512ffbf252dd79.tar.gz forums-40e28ac56b3ea06133a8c2146e512ffbf252dd79.tar.bz2 forums-40e28ac56b3ea06133a8c2146e512ffbf252dd79.tar.xz forums-40e28ac56b3ea06133a8c2146e512ffbf252dd79.zip |
Merge pull request #2315 from PayBas/ticket/12411
[ticket/12411] Expand vars of event: core.search_modify_tpl_ary
* PayBas/ticket/12411:
[ticket/12411] Improved change documentation
[ticket/12411] Missed on bool var
[ticket/12411] Corrected event vars description
[ticket/12411] Expand vars of event: core.search_modify_tpl_ary
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 7583cd9e10..a34c0a4e5a 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -1056,11 +1056,46 @@ if ($keywords || $author || $author_id || $search_id || $submit) * Modify the topic data before it is assigned to the template * * @event core.search_modify_tpl_ary - * @var array row Array with topic data - * @var array tpl_ary Template block array with topic data + * @var array row Array with topic data + * @var array tpl_ary Template block array with topic data + * @var string show_results Display topics or posts + * @var string topic_title Cleaned topic title + * @var int replies The number of topic replies + * @var string view_topic_url The URL to the topic + * @var string folder_img The folder image of the topic + * @var string folder_alt The alt attribute of the topic folder img + * @var int topic_type The topic type + * @var bool unread_topic Whether the topic has unread posts + * @var bool topic_unapproved Whether the topic is unapproved + * @var int posts_unapproved The number of unapproved posts + * @var bool topic_deleted Whether the topic has been deleted + * @var string u_mcp_queue The URL to the corresponding MCP queue page + * @var array zebra The zebra data of the current user + * @var array attachments All the attachments of the search results * @since 3.1.0-a1 + * @changed 3.1.0-b3 Added vars show_results, topic_title, replies, + * view_topic_url, folder_img, folder_alt, topic_type, unread_topic, + * topic_unapproved, posts_unapproved, topic_deleted, u_mcp_queue, + * zebra, attachments */ - $vars = array('row', 'tpl_ary'); + $vars = array( + 'row', + 'tpl_ary', + 'show_results', + 'topic_title', + 'replies', + 'view_topic_url', + 'folder_img', + 'folder_alt', + 'topic_type', + 'unread_topic', + 'topic_unapproved', + 'posts_unapproved', + 'topic_deleted', + 'u_mcp_queue', + 'zebra', + 'attachments', + ); extract($phpbb_dispatcher->trigger_event('core.search_modify_tpl_ary', compact($vars))); $template->assign_block_vars('searchresults', $tpl_ary); |