mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
[ticket/12273] Update existing events
PHPBB3-12273
This commit is contained in:
@@ -1000,8 +1000,17 @@ $sql_ary = array(
|
||||
* @since 3.1-A1
|
||||
* @change 3.1.0-a2 Added vars forum_id, topic_id, topic_data, post_list, sort_days, sort_key, sort_dir, start
|
||||
*/
|
||||
$vars = array('forum_id', 'topic_id', 'topic_data', 'post_list', 'sort_days');
|
||||
$vars = array_merge($vars, array('sort_key', 'sort_dir', 'start', 'sql_ary'));
|
||||
$vars = array(
|
||||
'forum_id',
|
||||
'topic_id',
|
||||
'topic_data',
|
||||
'post_list',
|
||||
'sort_days',
|
||||
'sort_key',
|
||||
'sort_dir',
|
||||
'start',
|
||||
'sql_ary',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_get_post_data', compact($vars)));
|
||||
|
||||
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
||||
@@ -1680,8 +1689,18 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||
* @change 3.1.0-a3 Added vars start, current_row_number, end, attachments
|
||||
* @change 3.1.0-b3 Added topic_data array, total_posts
|
||||
*/
|
||||
$vars = array('start', 'current_row_number', 'end', 'total_posts', 'row', 'cp_row');
|
||||
$vars = array_merge($vars, array('attachments', 'user_poster_data', 'post_row', 'topic_data'));
|
||||
$vars = array(
|
||||
'start',
|
||||
'current_row_number',
|
||||
'end',
|
||||
'total_posts',
|
||||
'row',
|
||||
'cp_row',
|
||||
'attachments',
|
||||
'user_poster_data',
|
||||
'post_row',
|
||||
'topic_data',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_post_row', compact($vars)));
|
||||
|
||||
$i = $current_row_number;
|
||||
@@ -1738,8 +1757,18 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||
* @since 3.1.0-a3
|
||||
* @change 3.1.0-b3 Added topic_data array, total_posts
|
||||
*/
|
||||
$vars = array('start', 'current_row_number', 'end', 'total_posts', 'row', 'cp_row');
|
||||
$vars = array_merge($vars, array('attachments', 'user_poster_data', 'post_row', 'topic_data'));
|
||||
$vars = array(
|
||||
'start',
|
||||
'current_row_number',
|
||||
'end',
|
||||
'total_posts',
|
||||
'row',
|
||||
'cp_row',
|
||||
'attachments',
|
||||
'user_poster_data',
|
||||
'post_row',
|
||||
'topic_data',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_post_row_after', compact($vars)));
|
||||
|
||||
$i = $current_row_number;
|
||||
|
Reference in New Issue
Block a user