mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 22:41:30 +01:00
Clean code
This commit is contained in:
@@ -93,7 +93,7 @@ class modMyModule extends DolibarrModules
|
|||||||
$this->langfiles = array("mymodule");
|
$this->langfiles = array("mymodule");
|
||||||
|
|
||||||
// Constants
|
// 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),
|
//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) );
|
// 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0) );
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,6 @@ class modSociete extends DolibarrModules
|
|||||||
$this->const[$r][2] = "DOL_DATA_ROOT/odttemplates/thirdparties";
|
$this->const[$r][2] = "DOL_DATA_ROOT/odttemplates/thirdparties";
|
||||||
$this->const[$r][3] = "";
|
$this->const[$r][3] = "";
|
||||||
$this->const[$r][4] = 0;
|
$this->const[$r][4] = 0;
|
||||||
$this->const[$r][6] = '$this->db->type != \'pgsql\''; // Condition
|
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Boxes
|
// Boxes
|
||||||
|
|||||||
Reference in New Issue
Block a user