diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2015-10-12 18:50:14 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-10-12 18:50:14 +0200 |
| commit | f3e2bd9273e69445923c940b4588c8e4a7fdf1db (patch) | |
| tree | f5d924a25329a2bcdb4302fa101f8fdd281cdc43 /phpBB/includes/functions_content.php | |
| parent | f90b16df0d1c4a17c1874b1416f8c21495d7b4f7 (diff) | |
| download | forums-f3e2bd9273e69445923c940b4588c8e4a7fdf1db.tar forums-f3e2bd9273e69445923c940b4588c8e4a7fdf1db.tar.gz forums-f3e2bd9273e69445923c940b4588c8e4a7fdf1db.tar.bz2 forums-f3e2bd9273e69445923c940b4588c8e4a7fdf1db.tar.xz forums-f3e2bd9273e69445923c940b4588c8e4a7fdf1db.zip | |
[ticket/14234] Replace more references with variables
PHPBB3-14234
Diffstat (limited to 'phpBB/includes/functions_content.php')
| -rw-r--r-- | phpBB/includes/functions_content.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index 2203694093..1b5fffc445 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -1210,6 +1210,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count, ); } + $update_count_ary = $update_count; /** * Use this event to modify the attachment template data. * @@ -1223,8 +1224,9 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count, * @var array extensions Array with attachment extensions data * @var mixed forum_id The forum id the attachments are displayed in (false if in private message) * @var bool preview Flag indicating if we are in post preview mode - * @var array update_count Array with attachment ids to update download count + * @var array update_count_ary Array with attachment ids to update download count * @since 3.1.0-RC5 + * @change 3.1.7-RC1 Replaced update_count with update_count_ary */ $vars = array( 'attachment', @@ -1234,9 +1236,11 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count, 'extensions', 'forum_id', 'preview', - 'update_count', + 'update_count_ary', ); extract($phpbb_dispatcher->trigger_event('core.parse_attachments_modify_template_data', compact($vars))); + $update_count = $update_count_ary; + unset($update_count_ary); $template->assign_block_vars('_file', $block_array); |
