From 860a39302ead57c596bec64e9d738c5dd69640bd Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 3 Nov 2003 21:35:24 +0000 Subject: 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 --- admin/comments.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'admin/comments.php') 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 -- cgit v1.2.3