diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2014-08-09 12:01:09 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2014-08-09 16:33:59 +0200 |
| commit | 12caf2f03dfa3440e810ce59583567b9a45953ad (patch) | |
| tree | 34217a9458bac1f5e5e2b6c6a10673d7afb26a74 /phpBB/viewtopic.php | |
| parent | deaa0a8c758acb14a1944c5d3c1fa24364f503c4 (diff) | |
| download | forums-12caf2f03dfa3440e810ce59583567b9a45953ad.tar forums-12caf2f03dfa3440e810ce59583567b9a45953ad.tar.gz forums-12caf2f03dfa3440e810ce59583567b9a45953ad.tar.bz2 forums-12caf2f03dfa3440e810ce59583567b9a45953ad.tar.xz forums-12caf2f03dfa3440e810ce59583567b9a45953ad.zip | |
[ticket/12938] Remove the 'Download all attachments' feature.
PHPBB3-12938
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 50481302e6..8d7ab5323d 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1392,17 +1392,6 @@ if (sizeof($attach_list)) } } -$methods = phpbb_gen_download_links('topic_id', $topic_id, $phpbb_root_path, $phpEx); -foreach ($methods as $method) -{ - $template->assign_block_vars('dl_method', $method); -} - -$template->assign_vars(array( - 'S_HAS_ATTACHMENTS' => $topic_data['topic_attachment'], - 'U_DOWNLOAD_ALL_ATTACHMENTS' => $methods[0]['LINK'], -)); - // Instantiate BBCode if need be if ($bbcode_bitfield !== '') { @@ -1420,6 +1409,7 @@ $i_total = sizeof($rowset) - 1; $prev_post_id = ''; $template->assign_vars(array( + 'S_HAS_ATTACHMENTS' => $topic_data['topic_attachment'], 'S_NUM_POSTS' => sizeof($post_list)) ); @@ -1918,12 +1908,6 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) 'DISPLAY_ATTACHMENT' => $attachment) ); } - - $methods = phpbb_gen_download_links('post_id', $row['post_id'], $phpbb_root_path, $phpEx); - foreach ($methods as $method) - { - $template->assign_block_vars('postrow.dl_method', $method); - } } $current_row_number = $i; |
