From 0d15a95f97b87ab22c9c550870b0ee4651e68674 Mon Sep 17 00:00:00 2001 From: Jmz Date: Wed, 2 Nov 2016 17:14:30 -0500 Subject: [PATCH] [ticket/14850] Add core.generate_smilies_before Allows changing root_path of smilies to use CDN for example PHPBB3-14850 --- phpBB/includes/functions_posting.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 4a4d2de0fe..30f5ba91ef 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -119,6 +119,15 @@ function generate_smilies($mode, $forum_id) foreach ($smilies as $row) { + /** + * Modify smiley root path before populating smiley list + * + * @event core.generate_smilies_before + * @var string root_path root_path for smilies + * @since 3.1.11-RC1 + */ + $vars = array('root_path'); + extract($phpbb_dispatcher->trigger_event('core.generate_smilies_before', compact($vars))); $template->assign_block_vars('smiley', array( 'SMILEY_CODE' => $row['code'], 'A_SMILEY_CODE' => addslashes($row['code']),