diff --git a/htdocs/includes/modules/modTelephonie.class.php b/htdocs/includes/modules/modTelephonie.class.php index 979bd5499ed..49f02642a22 100644 --- a/htdocs/includes/modules/modTelephonie.class.php +++ b/htdocs/includes/modules/modTelephonie.class.php @@ -57,6 +57,8 @@ class modTelephonie extends DolibarrModules $this->special = 1; + $this->dirs = array(); + // Dépendances $this->depends = array(); $this->requiredby = array(); @@ -87,47 +89,13 @@ class modTelephonie extends DolibarrModules * Documents * */ - if (defined("DOL_DATA_ROOT")) - { - $dir = DOL_DATA_ROOT . "/telephonie/" ; - - if (! file_exists($dir)) - { - umask(0); - if (! mkdir($dir, 0755)) - { - $this->error="Erreur: Le répertoire '$dir' n'existe pas et Dolibarr n'a pu le créer."; - } - } - - - $dir[0] = DOL_DATA_ROOT . "/telephonie/ligne/" ; - $dir[1] = DOL_DATA_ROOT . "/telephonie/ligne/commande" ; - $dir[2] = DOL_DATA_ROOT . "/telephonie/logs" ; - - - for ($i = 0 ; $i < sizeof($dir) ; $i++) - { - if (is_dir($dir[$i])) - { - dolibarr_syslog ("Le dossier '".$dir[$i]."' existe"); - } - else - { - if (! @mkdir($dir[$i], 0755)) - { - print "