mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX migration script for product photo
This commit is contained in:
parent
ee4fcba4f2
commit
ce2fc28d80
|
|
@ -104,6 +104,7 @@ function migrate_product_photospath($product)
|
|||
global $conf;
|
||||
|
||||
$dir = $conf->product->multidir_output[$product->entity];
|
||||
$conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO = 1;
|
||||
$origin = $dir .'/'. get_exdir($product->id,2,0,0,$product,'product') . $product->id ."/photos";
|
||||
$destin = $dir.'/'.dol_sanitizeFileName($product->ref);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user