mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/events] Adding ledge generate_smilies_footer
Used by phpBB Gallery PHPBB3-9550
This commit is contained in:
parent
713f8e4782
commit
ddcd189006
1 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,7 @@ if (!defined('IN_PHPBB'))
|
||||||
*/
|
*/
|
||||||
function generate_smilies($mode, $forum_id)
|
function generate_smilies($mode, $forum_id)
|
||||||
{
|
{
|
||||||
global $db, $user, $config, $template;
|
global $db, $user, $config, $template, $phpbb_dispatcher;
|
||||||
global $phpEx, $phpbb_root_path;
|
global $phpEx, $phpbb_root_path;
|
||||||
|
|
||||||
$start = request_var('start', 0);
|
$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')
|
if ($mode == 'window')
|
||||||
{
|
{
|
||||||
page_footer();
|
page_footer();
|
||||||
|
|
Loading…
Add table
Reference in a new issue