Update product.class.php
This commit is contained in:
parent
f4cbc81c97
commit
3638f17d75
@ -765,8 +765,10 @@ class Product extends CommonObject
|
|||||||
$newdir = $conf->product->dir_output . "/" . dol_sanitizeFileName($this->ref);
|
$newdir = $conf->product->dir_output . "/" . dol_sanitizeFileName($this->ref);
|
||||||
if (file_exists($olddir))
|
if (file_exists($olddir))
|
||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
//include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
||||||
$res = dol_move($olddir, $newdir, '0775');
|
//$res = dol_move($olddir, $newdir);
|
||||||
|
// do not use dol_move with directory
|
||||||
|
$res = @rename($olddir, $newdir);
|
||||||
if (! $res)
|
if (! $res)
|
||||||
{
|
{
|
||||||
$this->error='ErrorFailToMoveDir';
|
$this->error='ErrorFailToMoveDir';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user