diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 41474407b83..9d1461d4416 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -855,5 +855,22 @@ class Product $this->ref_fourn = $result["ref_fourn"]; } } + + /** + * + * + */ + function add_photo($sdir) + { + $dir = $sdir .'/'. get_exdir($this->id) . $this->id ."/"; + + if (! file_exists($dir)) + { + dolibarr_syslog("Product Create $dir"); + create_exdir($dir); + } + + } + } ?>