diff --git a/sas2/images.php b/sas2/images.php index b5d259e1d672c5a5b1b43bf319b49c08fbef90a0..b301034389d1531b41875a6031dbeb6287533345 100644 --- a/sas2/images.php +++ b/sas2/images.php @@ -68,7 +68,7 @@ if ( $id_photo > 0 ) $site->return_simplefile( "pherror", "image/png", $topdir."images/actions/delete.png"); } - $abs_file = $photo->get_rel_path().$photo->id; + $abs_file = $photo->get_abs_path().$photo->id; if ( $mode == "flv" && $photo->type_media == MEDIA_VIDEOFLV ) { diff --git a/sas2/include/photo.inc.php b/sas2/include/photo.inc.php index 1ffea98c27501c5bf2c066e591728c7b680d37ce..fa0f1f4e06f10be5263ce64b53574669bb46d287 100644 --- a/sas2/include/photo.inc.php +++ b/sas2/include/photo.inc.php @@ -131,10 +131,6 @@ class photo extends basedb { return "/var/www/ae2/data/sas/".date("Y/m/d",$this->date_prise_vue)."/"; } - /** on va arreter d'etre cons -s- */ - function get_rel_path () { - return "/data/sas/".date("Y/m/d",$this->date_prise_vue)."/"; - } /** * Verifie si tous les droits sont acquis, et en cas de changement met à jour la base de donnés.