Fix: Bug in the new photo system
This commit is contained in:
parent
50a6c133c9
commit
99c4508029
@ -3171,8 +3171,11 @@ class Product extends CommonObject
|
|||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT .'/core/lib/files.lib.php';
|
include_once DOL_DOCUMENT_ROOT .'/core/lib/files.lib.php';
|
||||||
|
|
||||||
|
global $conf;
|
||||||
|
|
||||||
$dir = $sdir;
|
$dir = $sdir;
|
||||||
if (! empty($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO)) $dir .= '/'. get_exdir($this->id,2) . $this->id ."/photos";
|
if (! empty($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO)) $dir .= '/'. get_exdir($this->id,2) . $this->id ."/photos/";
|
||||||
|
else $dir .= '/'.dol_sanitizeFileName($this->ref).'/';
|
||||||
|
|
||||||
$nbphoto=0;
|
$nbphoto=0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user