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
This commit is contained in:
z0rglub 2003-11-03 21:35:24 +00:00
commit 860a39302e
8 changed files with 19 additions and 28 deletions

View file

@ -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