aboutsummaryrefslogtreecommitdiffstats
path: root/admin/comments.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-11-03 21:35:24 +0000
committerz0rglub <z0rglub@piwigo.org>2003-11-03 21:35:24 +0000
commit860a39302ead57c596bec64e9d738c5dd69640bd (patch)
treea71089e36e0f9c2a90ff5fc373dc5f07551e5ddb /admin/comments.php
parent5fdc7ea1e582c7378ea8fd8ac3a9a50ec5298970 (diff)
Modifications linked to the move of admin.php to the root directory of PhpWebGallery
git-svn-id: http://piwigo.org/svn/trunk@228 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/comments.php')
-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.= '&amp;image_id='.$row['image_id'];
$vtp->setVar( $sub, 'picture.thumb_url', add_session_id( $url ) );
// 3. for each picture, retrieving all comments