Skip to content
Snippets Groups Projects
Commit 4a8cabeb authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Enhance installer for wizards

parent 064a7c9b
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ if (empty($_POST["db_user"]))
*/
if (! $error)
{
$result=include_once($main_dir."/lib/databases/".$_POST["db_type"].".lib.php");
$result=@include_once($main_dir."/lib/databases/".$_POST["db_type"].".lib.php");
if ($result)
{
// If we ask database or user creation we need to connect as root
......
......@@ -124,7 +124,7 @@ if (! empty($force_install_message))
<td class="label" valign="top">
<?php
if ($force_install_noedit) print '<input type="hidden" value="'.$dolibarr_main_document_root.'" name="main_dir">';
print '<input type="text" size="60" value="'.$dolibarr_main_document_root.'"'.(empty($force_install_noedit)?'':' disabled="true"').' name="main_dir'.$force_install_noedit.'">';
print '<input type="text" size="60" value="'.$dolibarr_main_document_root.'"'.(empty($force_install_noedit)?'':' disabled="true"').' name="main_dir'.(empty($force_install_noedit)?'':'_bis').'">';
?>
</td>
<td class="comment"><?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment