mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
[feature/events] Adding ledge generate_smilies_footer
Used by phpBB Gallery PHPBB3-9550
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user