From 5197779bba12db45508becc910d5886d77f3675d Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 21 Nov 2004 12:42:55 +0000 Subject: dirname function doesn't leave last "/" character, we add it git-svn-id: http://piwigo.org/svn/trunk@613 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/picture.php b/picture.php index 6176fbb38..6dbb67739 100644 --- a/picture.php +++ b/picture.php @@ -28,7 +28,7 @@ $rate_items = array(0,1,2,3,4,5); //--------------------------------------------------------------------- include define('PHPWG_ROOT_PATH','./'); -include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); +include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); //-------------------------------------------------- access authorization check check_cat_id( $_GET['cat'] ); check_login_authorization(); @@ -150,7 +150,7 @@ foreach (array('prev', 'current', 'next') as $i) if (isset($row['representative_ext']) and $row['representative_ext'] =! '') { - $picture[$i]['src'] = $cat_directory.'pwg_representative/'; + $picture[$i]['src'] = $cat_directory.'/pwg_representative/'; $picture[$i]['src'].= $file_wo_ext.'.'.$row['representative_ext']; } else @@ -166,9 +166,9 @@ foreach (array('prev', 'current', 'next') as $i) // FIXME : with remote pictures, this "remote fopen" takes long... if ($i == 'current') { - if (@fopen($cat_directory.'pwg_high/'.$row['file'], 'r')) + if (@fopen($cat_directory.'/pwg_high/'.$row['file'], 'r')) { - $picture[$i]['high'] = $cat_directory.'pwg_high/'.$row['file']; + $picture[$i]['high'] = $cat_directory.'/pwg_high/'.$row['file']; } } } -- cgit v1.2.3