diff options
author | plegall <plg@piwigo.org> | 2004-11-21 12:42:55 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2004-11-21 12:42:55 +0000 |
commit | 5197779bba12db45508becc910d5886d77f3675d (patch) | |
tree | f436a73e91c5fc9b832d938267f4154441ab4eab /picture.php | |
parent | ec015abc782f6e615ea561e11132aa71076cdd04 (diff) |
dirname function doesn't leave last "/" character, we add it
git-svn-id: http://piwigo.org/svn/trunk@613 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'picture.php')
-rw-r--r-- | picture.php | 8 |
1 files 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']; } } } |