aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-05-03 23:33:04 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-05-03 23:33:04 +0000
commit5b927b016203cf0eb73bc33a787b778b9f614578 (patch)
tree499cc72a3e7c42218a3357c7cbcb72d8cfcd87a4 /phpBB/viewtopic.php
parentc6888eb18e5862154297a870f348d60a7e608de7 (diff)
downloadforums-5b927b016203cf0eb73bc33a787b778b9f614578.tar
forums-5b927b016203cf0eb73bc33a787b778b9f614578.tar.gz
forums-5b927b016203cf0eb73bc33a787b778b9f614578.tar.bz2
forums-5b927b016203cf0eb73bc33a787b778b9f614578.tar.xz
forums-5b927b016203cf0eb73bc33a787b778b9f614578.zip
only very small things.
git-svn-id: file:///svn/phpbb/trunk@3967 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 75ec334c5b..1ad7c5091d 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1207,8 +1207,7 @@ foreach ($rowset as $key => $row)
{
case IMAGE_CAT:
// Images
- // NOTE: If you want to use the download.php everytime an image is displayed inlined, replace the
- // Section between BEGIN and END with (Without the // of course):
+ // NOTE: If you want to use the download.php everytime an image is displayed inlined, use this line:
// $img_source = $phpbb_root_path . 'download.' . $phpEx . $SID . '&amp;id=' . $attachment['attach_id'];
if (!empty($config['ftp_upload']) && trim($config['upload_dir']) == '')
{
@@ -1226,8 +1225,7 @@ foreach ($rowset as $key => $row)
case THUMB_CAT:
// Images, but display Thumbnail
- // NOTE: If you want to use the download.php everytime an thumnmail is displayed inlined, replace the
- // Section between BEGIN and END with (Without the // of course):
+ // NOTE: If you want to use the download.php everytime an thumnmail is displayed inlined, use this line:
// $thumb_source = $phpbb_root_path . 'download.' . $phpEx . $SID . '&amp;id=' . $attachment['attach_id'] . '&amp;thumb=1';
if (!empty($config['allow_ftp_upload']) && trim($config['upload_dir']) == '')
{
@@ -1242,7 +1240,7 @@ foreach ($rowset as $key => $row)
$download_link = $phpbb_root_path . "download.$phpEx$SID&amp;id=" . $attachment['attach_id'];
$additional_array = array(
- 'IMG_THUMB_SRC' => $thumb_source // should be THUMB_IMG or similar
+ 'THUMB_IMG' => $thumb_source
);
break;
@@ -1282,10 +1280,7 @@ foreach ($rowset as $key => $row)
);
// Viewed/Heared File ... update the download count (download.php is not called here)
- if (!preg_match("#&t=$topic_id#", $user->data['session_page']))
- {
- $update_count[] = $attachment['attach_id'];
- }
+ $update_count[] = $attachment['attach_id'];
break;
*/
default: