diff --git a/htdocs/admin/reception_setup.php b/htdocs/admin/reception_setup.php
index d75345a2d42..60421753b99 100644
--- a/htdocs/admin/reception_setup.php
+++ b/htdocs/admin/reception_setup.php
@@ -241,7 +241,7 @@ foreach ($dirmodels as $reldir) {
if ($conf->global->RECEPTION_ADDON_NUMBER == "$file") {
print img_picto($langs->trans("Activated"), 'switch_on');
} else {
- print 'scandir) ? '&scan_dir='.$module->scandir : '').(!empty($module->name) ? '&label='.urlencode($module->name) : '').'">';
+ print 'name) ? '&label='.urlencode($module->name) : '').'">';
print img_picto($langs->trans("Disabled"), 'switch_off');
print '';
}
diff --git a/htdocs/admin/supplier_payment.php b/htdocs/admin/supplier_payment.php
index 58a1527c8f6..c0283a59d08 100644
--- a/htdocs/admin/supplier_payment.php
+++ b/htdocs/admin/supplier_payment.php
@@ -145,6 +145,7 @@ if ($action == 'updateMask') {
}
}
+
/*
* View
*/
@@ -157,7 +158,7 @@ $form = new Form($db);
$linkback = ''.$langs->trans("BackToModuleList").'';
-print load_fiche_titre($langs->trans("SupplierPaymentSetup"), $linkback, 'title_setup');
+print load_fiche_titre($langs->trans("SuppliersSetup"), $linkback, 'title_setup');
print "
";
@@ -221,6 +222,7 @@ foreach ($dirmodels as $reldir) {
$classname = "mod_supplier_payment_".$file;
}
// Check if there is a filter on country
+ $reg = array();
preg_match('/\-(.*)_(.*)$/', $classname, $reg);
if (!empty($reg[2]) && $reg[2] != strtoupper($mysoc->country_code)) {
continue;
@@ -264,11 +266,10 @@ foreach ($dirmodels as $reldir) {
print ''."\n";
print '
';
- //print "> ".$conf->global->SUPPLIER_PAYMENT_ADDON." - ".$file;
- if ($conf->global->SUPPLIER_PAYMENT_ADDON == $file || getDolGlobalString('SUPPLIER_PAYMENT_ADDON') . '.php' == $file) {
+ if (getDolGlobalString('SUPPLIER_PAYMENT_ADDON') == $file || getDolGlobalString('SUPPLIER_PAYMENT_ADDON') . '.php' == $file) {
print img_picto($langs->trans("Activated"), 'switch_on');
} else {
- print 'scandir) ? '&scandir='.$module->scandir : '').'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
+ print 'name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("Disabled"), 'switch_off').'';
}
print ' | ';
@@ -318,6 +319,7 @@ print '';
/*
* Document templates generators
*/
+
print '
';
print load_fiche_titre($langs->trans("PaymentsPDFModules"), '', '');
@@ -348,15 +350,13 @@ foreach ($dirmodels as $reldir) {
$classname = substr($file, 0, dol_strlen($file) - 12);
require_once $dir.'/'.$file;
- $module = new $classname($db, new PaiementFourn($db));
+ $module = new $classname($db);
- print "\n";
+ print '
'."\n";
print "| ";
print(empty($module->name) ? $name : $module->name);
print " | \n";
print "\n";
- require_once $dir.'/'.$file;
- $module = new $classname($db, new Societe($db));
if (method_exists($module, 'info')) {
print $module->info($langs);
} else {
diff --git a/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php b/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php
index 7fb7b8324a5..706bead376d 100644
--- a/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php
+++ b/htdocs/core/modules/member/doc/doc_generic_member_odt.class.php
@@ -51,7 +51,7 @@ class doc_generic_member_odt extends ModelePDFMember
*/
public function __construct($db)
{
- global $conf, $langs, $mysoc;
+ global $langs, $mysoc;
// Load translation files required by the page
$langs->loadLangs(array("main", "companies"));
diff --git a/htdocs/core/modules/member/doc/pdf_standard_member.class.php b/htdocs/core/modules/member/doc/pdf_standard_member.class.php
index 7e9f438443f..6d35d7e4bf9 100644
--- a/htdocs/core/modules/member/doc/pdf_standard_member.class.php
+++ b/htdocs/core/modules/member/doc/pdf_standard_member.class.php
@@ -48,7 +48,7 @@ class pdf_standard_member extends CommonStickerGenerator
*/
public function __construct($db)
{
- global $conf, $langs, $mysoc;
+ global $langs;
// Translations
$langs->loadLangs(array("main", "admin"));
|