mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
Merge pull request #2911 from rxu/ticket/13020
[ticket/13020] Add variables to core.viewforum_get_topic_data event
This commit is contained in:
commit
cc96bcff99
1 changed files with 7 additions and 2 deletions
|
@ -392,10 +392,15 @@ $sql_array = array(
|
||||||
* Event to modify the SQL query before the topic data is retrieved
|
* Event to modify the SQL query before the topic data is retrieved
|
||||||
*
|
*
|
||||||
* @event core.viewforum_get_topic_data
|
* @event core.viewforum_get_topic_data
|
||||||
* @var array sql_array The SQL array to get the data of all topics
|
* @var array forum_data Array with forum data
|
||||||
|
* @var array sql_array The SQL array to get the data of all topics
|
||||||
* @since 3.1.0-a1
|
* @since 3.1.0-a1
|
||||||
|
* @change 3.1.0-RC4 Added forum_data var
|
||||||
*/
|
*/
|
||||||
$vars = array('sql_array');
|
$vars = array(
|
||||||
|
'forum_data',
|
||||||
|
'sql_array',
|
||||||
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.viewforum_get_topic_data', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.viewforum_get_topic_data', compact($vars)));
|
||||||
|
|
||||||
$sql_approved = ' AND ' . $phpbb_content_visibility->get_visibility_sql('topic', $forum_id, 't.');
|
$sql_approved = ' AND ' . $phpbb_content_visibility->get_visibility_sql('topic', $forum_id, 't.');
|
||||||
|
|
Loading…
Add table
Reference in a new issue