1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

[feature/attach-dl] Prefixed gen_download_links with phpbb_

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-04 13:58:50 +01:00
parent bbdbff1ab3
commit 18d7210a11
2 changed files with 3 additions and 3 deletions

View File

@ -1296,7 +1296,7 @@ function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $
* *
* @return array Array containing the link and the type of compression * @return array Array containing the link and the type of compression
*/ */
function gen_download_links($param_key, $param_val, $phpbb_root_path, $phpEx) function phpbb_gen_download_links($param_key, $param_val, $phpbb_root_path, $phpEx)
{ {
$methods = compress::methods(); $methods = compress::methods();
$links = array(); $links = array();

View File

@ -1319,7 +1319,7 @@ $template->assign_vars(array(
'S_HAS_ATTACHMENTS' => !empty($attachments), 'S_HAS_ATTACHMENTS' => !empty($attachments),
)); ));
$methods = gen_download_links('topic_id', $topic_id, $phpbb_root_path, $phpEx); $methods = phpbb_gen_download_links('topic_id', $topic_id, $phpbb_root_path, $phpEx);
foreach ($methods as $method) foreach ($methods as $method)
{ {
$template->assign_block_vars('dl_method', $method); $template->assign_block_vars('dl_method', $method);
@ -1607,7 +1607,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
); );
} }
$methods = gen_download_links('post_id', $row['post_id'], $phpbb_root_path, $phpEx); $methods = phpbb_gen_download_links('post_id', $row['post_id'], $phpbb_root_path, $phpEx);
foreach ($methods as $method) foreach ($methods as $method)
{ {
$template->assign_block_vars('postrow.dl_method', $method); $template->assign_block_vars('postrow.dl_method', $method);