This commit is contained in:
placid0w 2016-04-20 15:43:14 -03:00 committed by Laurent Destailleur
parent e3e2b87506
commit d043c9ce80

View File

@ -374,7 +374,7 @@ function getProductOrService($authentication,$id='',$ref='',$ref_ext='',$lang=''
$product->load_stock();
$dir = (!empty($conf->product->dir_output)?$conf->product->dir_output:$conf->service->dir_output);
$pdir = get_exdir($product->id,2,0,0,$product,'product') . $product->id ."/photos/";
$pdir = get_exdir($product->id,2,0,0,$product,'product') . $product->ref . "/";
$dir = $dir . '/'. $pdir;
if (! empty($product->multilangs[$langs->defaultlang]["label"])) $product->label = $product->multilangs[$langs->defaultlang]["label"];