Fix: Error on creating temp directory for users
This commit is contained in:
parent
13f83a965e
commit
0e2e46a9ff
@ -1082,7 +1082,7 @@ class DolibarrModules
|
|||||||
$name = $constname.strtoupper($this->dirs[$key][0]);
|
$name = $constname.strtoupper($this->dirs[$key][0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Define directory full path
|
// Define directory full path ($dir must start with "/")
|
||||||
if (empty($conf->global->MAIN_MODULE_MULTICOMPANY) || $conf->entity == 1) $fulldir = DOL_DATA_ROOT.$dir;
|
if (empty($conf->global->MAIN_MODULE_MULTICOMPANY) || $conf->entity == 1) $fulldir = DOL_DATA_ROOT.$dir;
|
||||||
else $fulldir = DOL_DATA_ROOT."/".$conf->entity.$dir;
|
else $fulldir = DOL_DATA_ROOT."/".$conf->entity.$dir;
|
||||||
// Create dir if it does not exists
|
// Create dir if it does not exists
|
||||||
|
|||||||
@ -63,7 +63,7 @@ class modUser extends DolibarrModules
|
|||||||
$this->picto='group';
|
$this->picto='group';
|
||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array("users/temp");
|
$this->dirs = array("/users/temp");
|
||||||
|
|
||||||
// Config pages
|
// Config pages
|
||||||
$this->config_page_url = array("/admin/user.php");
|
$this->config_page_url = array("/admin/user.php");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user