From d60cc6ca20af8e798f60b69df05ebf7ce1120274 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 3 Mar 2005 16:50:39 +0000 Subject: [PATCH] Ajout fonction add_photo Ce n'est pas encore fini ! ;-) --- htdocs/product.class.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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); + } + + } + } ?>