Fix suggested path in install process
This commit is contained in:
parent
042479da9e
commit
dc0c293f51
1 changed files with 5 additions and 0 deletions
|
|
@ -230,6 +230,11 @@ if (!empty($force_install_noedit)) {
|
|||
if (empty($dolibarr_main_data_root)) {
|
||||
$dolibarr_main_data_root = GETPOSTISSET('main_data_dir') ? GETPOST('main_data_dir') : detect_dolibarr_main_data_root($dolibarr_main_document_root);
|
||||
}
|
||||
// Correct value if dolibarr_main_data_root contains '..'
|
||||
if (strpos($dolibarr_main_data_root, '..') !== false) {
|
||||
$dolibarr_main_data_root = dirname($dolibarr_main_document_root).'/documents';
|
||||
}
|
||||
|
||||
?>
|
||||
<td class="label">
|
||||
<input type="text"
|
||||
|
|
|
|||
Loading…
Reference in a new issue