mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Configurable download torrent url
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
f09286900c
commit
5a1a4762b8
10 changed files with 13 additions and 12 deletions
|
@ -239,7 +239,7 @@ function display_attachments($post_id)
|
|||
if ($image) {
|
||||
// Images
|
||||
if ($attach_config['upload_dir'][0] == '/' || ($attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':')) {
|
||||
$img_source = BB_ROOT . DOWNLOAD_URL . $attachments['_' . $post_id][$i]['attach_id'];
|
||||
$img_source = BB_ROOT . DL_URL . $attachments['_' . $post_id][$i]['attach_id'];
|
||||
$download_link = true;
|
||||
} else {
|
||||
$img_source = $filename;
|
||||
|
@ -269,7 +269,7 @@ function display_attachments($post_id)
|
|||
if ($thumbnail) {
|
||||
// Images, but display Thumbnail
|
||||
if ($attach_config['upload_dir'][0] == '/' || ($attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':')) {
|
||||
$thumb_source = BB_ROOT . DOWNLOAD_URL . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1';
|
||||
$thumb_source = BB_ROOT . DL_URL . $attachments['_' . $post_id][$i]['attach_id'] . '&thumb=1';
|
||||
} else {
|
||||
$thumb_source = $thumbnail_filename;
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ function display_attachments($post_id)
|
|||
$template->assign_block_vars('postrow.attach.cat_thumb_images', array(
|
||||
'DOWNLOAD_NAME' => $display_name,
|
||||
'S_UPLOAD_IMAGE' => $upload_image,
|
||||
'IMG_SRC' => BB_ROOT . DOWNLOAD_URL . $attachments['_' . $post_id][$i]['attach_id'],
|
||||
'IMG_SRC' => BB_ROOT . DL_URL . $attachments['_' . $post_id][$i]['attach_id'],
|
||||
'IMG_THUMB_SRC' => $thumb_source,
|
||||
'FILESIZE' => $filesize,
|
||||
'COMMENT' => $comment,
|
||||
|
@ -292,7 +292,7 @@ function display_attachments($post_id)
|
|||
|
||||
// display attachment
|
||||
$template->assign_block_vars('postrow.attach.attachrow', array(
|
||||
'U_DOWNLOAD_LINK' => BB_ROOT . DOWNLOAD_URL . $attachments['_' . $post_id][$i]['attach_id'],
|
||||
'U_DOWNLOAD_LINK' => BB_ROOT . DL_URL . $attachments['_' . $post_id][$i]['attach_id'],
|
||||
'S_UPLOAD_IMAGE' => $upload_image,
|
||||
'DOWNLOAD_NAME' => $display_name,
|
||||
'FILESIZE' => $filesize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue