Fix: les répertoires de l'entity 1 sont par défaut à la racine du répertoire "documents"
This commit is contained in:
parent
71e8c658ad
commit
c9f15c4fad
@ -1066,7 +1066,7 @@ class DolibarrModules
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Define directory full path
|
// Define directory full path
|
||||||
if (empty($conf->global->MAIN_MODULE_MULTICOMPANY)) $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
|
||||||
if ($fulldir && ! file_exists($fulldir))
|
if ($fulldir && ! file_exists($fulldir))
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
/* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
||||||
* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2005-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2008 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user