aboutsummaryrefslogtreecommitdiffstats
path: root/admin/comments.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/comments.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/admin/comments.php b/admin/comments.php
index 9c9ec1096..f13afab30 100644
--- a/admin/comments.php
+++ b/admin/comments.php
@@ -60,17 +60,12 @@ function display_pictures( $mysql_result, $maxtime, $validation_box = false )
$name.= ' [ '.$subrow['file'].' ]';
$vtp->setVar( $sub, 'picture.title', $name );
// source of the thumbnail picture
- $src = '';
- if ( $array_cat_site_id[$subrow['cat_id']] == 1 )
- {
- $src.= '.';
- }
- $src.= $array_cat_directories[$subrow['cat_id']];
+ $src = $array_cat_directories[$subrow['cat_id']];
$src.= 'thumbnail/'.$conf['prefix_thumbnail'];
$src.= $file.'.'.$subrow['tn_ext'];
$vtp->setVar( $sub, 'picture.thumb_src', $src );
// link to the full size picture
- $url = '../picture.php?cat='.$subrow['cat_id'];
+ $url = './picture.php?cat='.$subrow['cat_id'];
$url.= '&image_id='.$row['image_id'];
$vtp->setVar( $sub, 'picture.thumb_url', add_session_id( $url ) );
// 3. for each picture, retrieving all comments