mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Qual: Remove checkstyle warnings
This commit is contained in:
@@ -38,12 +38,12 @@ class modFckeditor extends DolibarrModules
|
||||
/**
|
||||
* Constructor. Define names, constants, directories, boxes, permissions
|
||||
*
|
||||
* @param DoliDB $DB Database handler
|
||||
* @param DoliDB $db Database handler
|
||||
*/
|
||||
function modFckeditor($DB)
|
||||
function modFckeditor($db)
|
||||
{
|
||||
$this->db = $DB ;
|
||||
$this->numero = 2000 ;
|
||||
$this->db = $db;
|
||||
$this->numero = 2000;
|
||||
|
||||
$this->family = "technic";
|
||||
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
|
||||
@@ -81,16 +81,20 @@ class modFckeditor extends DolibarrModules
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Fonction appele lors de l'activation du module. Insere en base les constantes, boites, permissions du module.
|
||||
* Definit egalement les repertoires de donnees a creer pour ce module.
|
||||
* Function called when module is enabled.
|
||||
* The init function add constants, boxes, permissions and menus (defined in constructor) into Dolibarr database.
|
||||
* It also creates data directories
|
||||
*
|
||||
* @param string $options Options when enabling module ('', 'noboxes')
|
||||
* @return int 1 if OK, 0 if KO
|
||||
*/
|
||||
function init()
|
||||
function init($options='')
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$sql = array();
|
||||
|
||||
return $this->_init($sql);
|
||||
return $this->_init($sql,$options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user