mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16383] Add core events to modify friends list
PHPBB3-16383
This commit is contained in:
parent
f6e9e043d8
commit
2ee9d4f101
1 changed files with 4 additions and 4 deletions
|
@ -364,9 +364,9 @@ if ($module->is_active('zebra', 'friends'))
|
||||||
*
|
*
|
||||||
* @since 3.2.10-RC1
|
* @since 3.2.10-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = [
|
||||||
'sql_ary',
|
'sql_ary',
|
||||||
);
|
];
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_modify_friends_sql', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.ucp_modify_friends_sql', compact($vars)));
|
||||||
|
|
||||||
$sql = $db->sql_build_query('SELECT_DISTINCT', $sql_ary);
|
$sql = $db->sql_build_query('SELECT_DISTINCT', $sql_ary);
|
||||||
|
@ -394,11 +394,11 @@ if ($module->is_active('zebra', 'friends'))
|
||||||
*
|
*
|
||||||
* @since 3.2.10-RC1
|
* @since 3.2.10-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = [
|
||||||
'row',
|
'row',
|
||||||
'tpl_ary',
|
'tpl_ary',
|
||||||
'which',
|
'which',
|
||||||
);
|
];
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_modify_friends_template_vars', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.ucp_modify_friends_template_vars', compact($vars)));
|
||||||
|
|
||||||
$template->assign_block_vars("friends_{$which}", $tpl_ary);
|
$template->assign_block_vars("friends_{$which}", $tpl_ary);
|
||||||
|
|
Loading…
Add table
Reference in a new issue