diff options
| author | Cesar G <prototech91@gmail.com> | 2013-10-11 18:48:09 -0700 |
|---|---|---|
| committer | Cesar G <prototech91@gmail.com> | 2013-12-06 00:56:24 -0800 |
| commit | e110d591a93b518edca00f01823d62c4d1a0ca91 (patch) | |
| tree | 992f00a724cf8ba7ab001a1519824c89cbfbe80c /phpBB/viewtopic.php | |
| parent | 4b0410a9d9ab9a405722f0d14d659ab3b7096f11 (diff) | |
| download | forums-e110d591a93b518edca00f01823d62c4d1a0ca91.tar forums-e110d591a93b518edca00f01823d62c4d1a0ca91.tar.gz forums-e110d591a93b518edca00f01823d62c4d1a0ca91.tar.bz2 forums-e110d591a93b518edca00f01823d62c4d1a0ca91.tar.xz forums-e110d591a93b518edca00f01823d62c4d1a0ca91.zip | |
[ticket/11241] Consolidate topic actions into "Topic tools" dropdown.
PHPBB3-11241
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 3735bca83d..dd4f7e1b19 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1384,16 +1384,17 @@ if (sizeof($attach_list)) } } -$template->assign_vars(array( - 'S_HAS_ATTACHMENTS' => $topic_data['topic_attachment'], -)); - $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 !== '') { |
