diff --git a/htdocs/core/class/commonnumrefgenerator.class.php b/htdocs/core/class/commonnumrefgenerator.class.php index f843c599dd7..24e7991c19a 100644 --- a/htdocs/core/class/commonnumrefgenerator.class.php +++ b/htdocs/core/class/commonnumrefgenerator.class.php @@ -165,12 +165,4 @@ abstract class CommonNumRefGenerator } return $langs->trans("NotAvailable"); } - - - /** - * Return an example of numbering - * - * @return string Example - */ - abstract public function getExample(); } diff --git a/htdocs/core/modules/product/modules_product.class.php b/htdocs/core/modules/product/modules_product.class.php index 6e6acef9b41..bb9c206ee8a 100644 --- a/htdocs/core/modules/product/modules_product.class.php +++ b/htdocs/core/modules/product/modules_product.class.php @@ -129,8 +129,6 @@ abstract class ModeleProductCode extends CommonNumRefGenerator */ public function getToolTip($langs, $product, $type) { - global $conf; - $langs->loadLangs(array("admin", "companies")); $strikestart = ''; diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php index 21f64159c47..d98818b51c9 100644 --- a/htdocs/product/admin/product.php +++ b/htdocs/product/admin/product.php @@ -340,7 +340,7 @@ foreach ($dirproduct as $dirroot) { print ''.$modCodeProduct->info($langs).''."\n"; print ''.$modCodeProduct->getExample($langs).''."\n"; - if (getDolGlobalString('PRODUCT_CODEPRODUCT_ADDON') && $conf->global->PRODUCT_CODEPRODUCT_ADDON == $file) { + if (getDolGlobalString('PRODUCT_CODEPRODUCT_ADDON') == $file) { print ''."\n"; print img_picto($langs->trans("Activated"), 'switch_on'); print "\n";