Skip to content

Commit

Permalink
Fix: wrong path with multicompany module
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Dec 11, 2013
1 parent a89a4ee commit 0247241
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/core/filemanagerdol/connectors/php/config.php
Expand Up @@ -35,6 +35,7 @@
$pos = strstr($uri, '/'); // $pos contient alors url sans nom domaine
if ($pos == '/') $pos = ''; // si $pos vaut /, on le met a ''
define('DOL_URL_ROOT', $pos);
$entity = ((!empty($_SESSION['dol_entity']) && $_SESSION['dol_entity'] > 1) ? $_SESSION['dol_entity'] : null);

// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
Expand All @@ -49,7 +50,7 @@
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = $dolibarr_main_data_root.'/fckeditor/';
$Config['UserFilesAbsolutePath'] = $dolibarr_main_data_root . (!empty($entity) ? '/' . $entity : '') . '/fckeditor/';

// Due to security issues with Apache modules, it is recommended to leave the
// following setting enabled.
Expand Down

0 comments on commit 0247241

Please sign in to comment.