@@ -99,8 +99,9 @@ |
||
99 | 99 | $main_data_dir = $argv[4]; // override when executing the script in command line |
100 | 100 | } |
101 | 101 | // In mode 3 the main_url is custom |
102 | - if ($force_install_noedit != 3) |
|
103 | - $main_url = detect_dolibarr_main_url_root(); |
|
102 | + if ($force_install_noedit != 3) { |
|
103 | + $main_url = detect_dolibarr_main_url_root(); |
|
104 | + } |
|
104 | 105 | if (!empty($argv[5])) { |
105 | 106 | $main_url = $argv[5]; // override when executing the script in command line |
106 | 107 | } |