diff --git a/dev/skeletons/modMyModule.class.php b/dev/skeletons/modMyModule.class.php index da12e1d3aeb..6c8f6ff5f30 100644 --- a/dev/skeletons/modMyModule.class.php +++ b/dev/skeletons/modMyModule.class.php @@ -93,7 +93,7 @@ class modMyModule extends DolibarrModules $this->langfiles = array("mymodule"); // Constants - $this->const = array(); // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 0 or 'allentities', condition) + $this->const = array(); // List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 0 or 'allentities') //Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',0), // 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0) ); diff --git a/htdocs/includes/modules/DolibarrModules.class.php b/htdocs/includes/modules/DolibarrModules.class.php index e5f0714ebdd..5b27eb7cda2 100644 --- a/htdocs/includes/modules/DolibarrModules.class.php +++ b/htdocs/includes/modules/DolibarrModules.class.php @@ -785,12 +785,12 @@ class DolibarrModules foreach ($this->const as $key => $value) { - $name = $this->const[$key][0]; - $type = $this->const[$key][1]; - $val = $this->const[$key][2]; - $note = $this->const[$key][3]; - $visible= $this->const[$key][4]; - $entity = ! empty($this->const[$key][5])?0:$conf->entity; + $name = $this->const[$key][0]; + $type = $this->const[$key][1]; + $val = $this->const[$key][2]; + $note = $this->const[$key][3]; + $visible = $this->const[$key][4]; + $entity = ! empty($this->const[$key][5])?0:$conf->entity; // Clean if (empty($visible)) $visible='0'; diff --git a/htdocs/includes/modules/modSociete.class.php b/htdocs/includes/modules/modSociete.class.php index 1f6f024282d..b645d83644f 100644 --- a/htdocs/includes/modules/modSociete.class.php +++ b/htdocs/includes/modules/modSociete.class.php @@ -107,7 +107,6 @@ class modSociete extends DolibarrModules $this->const[$r][2] = "DOL_DATA_ROOT/odttemplates/thirdparties"; $this->const[$r][3] = ""; $this->const[$r][4] = 0; - $this->const[$r][6] = '$this->db->type != \'pgsql\''; // Condition $r++; // Boxes