Fix: les rpertoires de l'entity 1 sont par dfaut la racine du rpertoire "documents"
This commit is contained in:
parent
71e8c658ad
commit
c9f15c4fad
@ -1066,7 +1066,7 @@ class DolibarrModules
|
||||
}
|
||||
|
||||
// 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;
|
||||
// Create dir if it does not exists
|
||||
if ($fulldir && ! file_exists($fulldir))
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
||||
* 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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
Loading…
Reference in New Issue
Block a user