diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-25 11:46:44 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-25 11:46:44 +0200 |
| commit | 87899b0e140400e23341ea1286d50e330132be90 (patch) | |
| tree | 4c554fa2b949a12de2c7f33f3bf0b714c900e949 /phpBB/includes/functions_content.php | |
| parent | 01e2d7c26c9974405c073d43ecd12614aca6faa5 (diff) | |
| download | forums-87899b0e140400e23341ea1286d50e330132be90.tar forums-87899b0e140400e23341ea1286d50e330132be90.tar.gz forums-87899b0e140400e23341ea1286d50e330132be90.tar.bz2 forums-87899b0e140400e23341ea1286d50e330132be90.tar.xz forums-87899b0e140400e23341ea1286d50e330132be90.zip | |
[ticket/12273] Update existing events
PHPBB3-12273
Diffstat (limited to 'phpBB/includes/functions_content.php')
| -rw-r--r-- | phpBB/includes/functions_content.php | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index bd711541c2..89a0c2823e 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -527,7 +527,15 @@ function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bb * @var bool allow_smilies Whether or not to parse Smilies * @since 3.1-A1 */ - $vars = array('text', 'uid', 'bitfield', 'flags', 'allow_bbcode', 'allow_urls', 'allow_smilies'); + $vars = array( + 'text', + 'uid', + 'bitfield', + 'flags', + 'allow_bbcode', + 'allow_urls', + 'allow_smilies', + ); extract($phpbb_dispatcher->trigger_event('core.modify_text_for_storage_before', compact($vars))); $uid = $bitfield = ''; @@ -1410,8 +1418,16 @@ function get_username_string($mode, $user_id, $username, $username_colour = '', * @var array _profile_cache Array of original return templates * @since 3.1-A1 */ - $vars = array('mode', 'user_id', 'username', 'username_colour', 'guest_username'); - $vars = array_merge($vars, array('custom_profile_url', 'username_string', '_profile_cache')); + $vars = array( + 'mode', + 'user_id', + 'username', + 'username_colour', + 'guest_username', + 'custom_profile_url', + 'username_string', + '_profile_cache', + ); extract($phpbb_dispatcher->trigger_event('core.modify_username_string', compact($vars))); return $username_string; |
