mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[feature/events] Adding ledge generate_smilies_footer
Used by phpBB Gallery PHPBB3-9550
This commit is contained in:
parent
713f8e4782
commit
ddcd189006
@ -20,7 +20,7 @@ if (!defined('IN_PHPBB'))
|
||||
*/
|
||||
function generate_smilies($mode, $forum_id)
|
||||
{
|
||||
global $db, $user, $config, $template;
|
||||
global $db, $user, $config, $template, $phpbb_dispatcher;
|
||||
global $phpEx, $phpbb_root_path;
|
||||
|
||||
$start = request_var('start', 0);
|
||||
@ -131,6 +131,11 @@ function generate_smilies($mode, $forum_id)
|
||||
);
|
||||
}
|
||||
|
||||
$vars = array('mode', 'forum_id', 'display_link');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.generate_smilies_footer', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
|
||||
if ($mode == 'window')
|
||||
{
|
||||
page_footer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user