mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 23:55:26 +02:00
Merge pull request #5710 from kasimi/ticket/16182
[ticket/16182] Add core.generate_smilies_modify_rowset
This commit is contained in:
commit
cbbc64a54f
@ -114,6 +114,22 @@ function generate_smilies($mode, $forum_id)
|
|||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modify smilies before they are assigned to the template
|
||||||
|
*
|
||||||
|
* @event core.generate_smilies_modify_rowset
|
||||||
|
* @var string mode Smiley mode, either window or inline
|
||||||
|
* @var int forum_id Forum where smilies are generated
|
||||||
|
* @var array smilies Smiley rows fetched from the database
|
||||||
|
* @since 3.2.9-RC1
|
||||||
|
*/
|
||||||
|
$vars = [
|
||||||
|
'mode',
|
||||||
|
'forum_id',
|
||||||
|
'smilies',
|
||||||
|
];
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.generate_smilies_modify_rowset', compact($vars)));
|
||||||
|
|
||||||
if (count($smilies))
|
if (count($smilies))
|
||||||
{
|
{
|
||||||
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_path_helper->get_web_root_path();
|
$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $phpbb_path_helper->get_web_root_path();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user