Changeset 613 for trunk/picture.php


Ignore:
Timestamp:
Nov 21, 2004, 1:42:55 PM (19 years ago)
Author:
plg
Message:

dirname function doesn't leave last "/" character, we add it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r607 r613  
    2929//--------------------------------------------------------------------- include
    3030define('PHPWG_ROOT_PATH','./');
    31 include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );   
     31include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
    3232//-------------------------------------------------- access authorization check
    3333check_cat_id( $_GET['cat'] );
     
    151151  if (isset($row['representative_ext']) and $row['representative_ext'] =! '')
    152152  {
    153     $picture[$i]['src'] = $cat_directory.'pwg_representative/';
     153    $picture[$i]['src'] = $cat_directory.'/pwg_representative/';
    154154    $picture[$i]['src'].= $file_wo_ext.'.'.$row['representative_ext'];
    155155  }
     
    167167    if ($i == 'current')
    168168    {
    169       if (@fopen($cat_directory.'pwg_high/'.$row['file'], 'r'))
     169      if (@fopen($cat_directory.'/pwg_high/'.$row['file'], 'r'))
    170170      {
    171         $picture[$i]['high'] = $cat_directory.'pwg_high/'.$row['file'];
     171        $picture[$i]['high'] = $cat_directory.'/pwg_high/'.$row['file'];
    172172      }
    173173    }
Note: See TracChangeset for help on using the changeset viewer.