|
@@ -42,7 +42,7 @@ if (! $user->admin) accessforbidden();
|
|
|
$action = GETPOST('action','alpha');
|
|
|
$value = GETPOST('value','alpha');
|
|
|
$label = GETPOST('label','alpha');
|
|
|
-$scandir = GETPOST('scandir','alpha');
|
|
|
+$scandir = GETPOST('scan_dir','alpha');
|
|
|
$type='invoice';
|
|
|
|
|
|
|
|
@@ -380,7 +380,7 @@ foreach ($dirmodels as $reldir)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.preg_replace('/\.php$/','',$file).'&scandir='.$module->scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'switch_off').'</a>';
|
|
|
+ print '<a href="'.$_SERVER["PHP_SELF"].'?action=setmod&value='.preg_replace('/\.php$/','',$file).'&scan_dir='.$module->scan_dir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"),'switch_off').'</a>';
|
|
|
}
|
|
|
print '</td>';
|
|
|
|
|
@@ -566,7 +566,7 @@ foreach ($dirmodels as $reldir)
|
|
|
else
|
|
|
{
|
|
|
print "<td align=\"center\">\n";
|
|
|
- print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'&scandir='.$module->scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("SetAsDefault"),'switch_off').'</a>';
|
|
|
+ print '<a href="'.$_SERVER["PHP_SELF"].'?action=set&value='.$name.'&scan_dir='.$module->scandir.'&label='.urlencode($module->name).'">'.img_picto($langs->trans("SetAsDefault"),'switch_off').'</a>';
|
|
|
print "</td>";
|
|
|
}
|
|
|
|
|
@@ -578,7 +578,7 @@ foreach ($dirmodels as $reldir)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'&scandir='.$module->scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("SetAsDefault"),'off').'</a>';
|
|
|
+ print '<a href="'.$_SERVER["PHP_SELF"].'?action=setdoc&value='.$name.'&scan_dir='.$module->scandir.'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("SetAsDefault"),'off').'</a>';
|
|
|
}
|
|
|
print '</td>';
|
|
|
|