diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php index e72c4427f08dd..e16f64d15151e 100644 --- a/htdocs/admin/barcode.php +++ b/htdocs/admin/barcode.php @@ -233,7 +233,7 @@ print ''; print ''.$modBarCode->getExample($langs)."\n"; - if (getDolGlobalString('BARCODE_PRODUCT_ADDON_NUM') && $conf->global->BARCODE_PRODUCT_ADDON_NUM == "$file") { + if (getDolGlobalString('BARCODE_PRODUCT_ADDON_NUM') == "$file") { print ''; print img_picto($langs->trans("Activated"), 'switch_on'); print ''; diff --git a/htdocs/barcode/codeinit.php b/htdocs/barcode/codeinit.php index 5edc67dda71eb..de1f4f96e4dec 100644 --- a/htdocs/barcode/codeinit.php +++ b/htdocs/barcode/codeinit.php @@ -184,7 +184,7 @@ if (preg_match('/^mod_barcode_product_.*php$/', $file)) { $file = substr($file, 0, dol_strlen($file) - 4); - if ($file == $conf->global->BARCODE_PRODUCT_ADDON_NUM) { + if ($file == getDolGlobalString('BARCODE_PRODUCT_ADDON_NUM')) { try { dol_include_once($dirroot.$file.'.php'); } catch (Exception $e) { diff --git a/htdocs/core/class/html.formwebsite.class.php b/htdocs/core/class/html.formwebsite.class.php index c6a7bb2b7f8ff..f4b31370d7d4e 100644 --- a/htdocs/core/class/html.formwebsite.class.php +++ b/htdocs/core/class/html.formwebsite.class.php @@ -135,12 +135,12 @@ public function selectTypeOfContainer($htmlname, $selected = '', $useempty = 0, $lasttypecontainer = ''; while ($i < $num) { $obj = $this->db->fetch_object($result); - if (in_array($obj->typecontainer, array('library', 'service'))) { - /*if (!getDolGlobalString('WEBSITE_ADD_PAGE_TYPE_PHPLIB')) { + /*if (in_array($obj->typecontainer, array('library', 'service'))) { + if (!getDolGlobalString('WEBSITE_ADD_PAGE_TYPE_PHPLIB')) { $i++; continue; - }*/ - } + } + }*/ if ($obj->typecontainer != $lasttypecontainer) { $out .= '