mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
[feature/attach-dl] Prefixed gen_download_links with phpbb_
PHPBB3-11042
This commit is contained in:
parent
bbdbff1ab3
commit
18d7210a11
@ -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
|
||||
*/
|
||||
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();
|
||||
$links = array();
|
||||
|
@ -1319,7 +1319,7 @@ $template->assign_vars(array(
|
||||
'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)
|
||||
{
|
||||
$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)
|
||||
{
|
||||
$template->assign_block_vars('postrow.dl_method', $method);
|
||||
|
Loading…
x
Reference in New Issue
Block a user