Fix: Error on creating temp directory for users

This commit is contained in:
Laurent Destailleur
2010-02-11 08:32:49 +00:00
parent 13f83a965e
commit 0e2e46a9ff
2 changed files with 2 additions and 2 deletions

View File

@@ -1082,7 +1082,7 @@ class DolibarrModules
$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;
else $fulldir = DOL_DATA_ROOT."/".$conf->entity.$dir;
// Create dir if it does not exists

View File

@@ -63,7 +63,7 @@ class modUser extends DolibarrModules
$this->picto='group';
// Data directories to create when module is enabled
$this->dirs = array("users/temp");
$this->dirs = array("/users/temp");
// Config pages
$this->config_page_url = array("/admin/user.php");