Browse Source

Fix : script to migrate photo path

Maxime Kohlhaas 8 years ago
parent
commit
f166c96ed5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/product/migrate_picture_path.php

+ 1 - 1
scripts/product/migrate_picture_path.php

@@ -104,7 +104,7 @@ function migrate_product_photospath($product)
 	global $conf;
 
 	$dir = $conf->product->multidir_output[$product->entity];
-	$origin = $dir .'/'. get_exdir($product->id,2) . $product->id ."/photos";
+	$origin = $dir .'/'. get_exdir($product->id,2,0,0,$product,'product') . $product->id ."/photos";
 	$destin = $dir.'/'.dol_sanitizeFileName($product->ref);
 
 	$error = 0;