Skip to content

Commit

Permalink
FIX Wizard for restore does not show import command
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 29, 2015
1 parent fa9103f commit c05df2a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions htdocs/admin/tools/dolibarr_import.php
Expand Up @@ -39,6 +39,8 @@
*/

$label=$db::LABEL;
$type=$db->type;


$help_url='EN:Restores|FR:Restaurations|ES:Restauraciones';
llxHeader('','',$help_url);
Expand Down Expand Up @@ -91,7 +93,7 @@
<fieldset id="exportoptions">
<legend><?php echo $langs->trans("ImportMethod"); ?></legend>
<?php
if ($label == 'MySQL')
if (in_array($type, array('mysql', 'mysqli')))
{
?>
<div class="formelementrow">
Expand All @@ -100,7 +102,7 @@
</div>
<?php
}
else if ($label == 'PostgreSQL')
else if (in_array($type, array('pgsql')))
{
?>
<div class="formelementrow">
Expand All @@ -123,7 +125,7 @@

<div id="div_container_sub_exportoptions">
<?php
if ($label == 'MySQL')
if (in_array($type, array('mysql', 'mysqli')))
{
?>
<fieldset id="mysql_options">
Expand Down Expand Up @@ -157,7 +159,7 @@
</fieldset>
<?php
}
else if ($label == 'PostgreSQL')
else if (in_array($type, array('pgsql')))
{
?>
<fieldset id="postgresql_options">
Expand Down

0 comments on commit c05df2a

Please sign in to comment.