diff --git a/htdocs/admin/fichinter.php b/htdocs/admin/fichinter.php index e366b141c25..b0117e43557 100644 --- a/htdocs/admin/fichinter.php +++ b/htdocs/admin/fichinter.php @@ -103,7 +103,7 @@ if ($_GET["action"] == 'setmod') dolibarr_set_const($db, "FICHEINTER_ADDON",$_GET["value"]); } -// défini les constantes du modèle pluton +// défini les constantes du modèle arctic if ($_POST["action"] == 'updateMatrice') dolibarr_set_const($db, "FICHEINTER_NUM_MATRICE",$_POST["matrice"]); if ($_POST["action"] == 'updatePrefix') dolibarr_set_const($db, "FICHEINTER_NUM_PREFIX",$_POST["prefix"]); if ($_POST["action"] == 'setOffset') dolibarr_set_const($db, "FICHEINTER_NUM_DELTA",$_POST["offset"]); diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 5db6d762d2a..0c9629a7a91 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -32,9 +32,9 @@ require_once(DOL_DOCUMENT_ROOT."/fichinter/fichinter.class.php"); require_once(DOL_DOCUMENT_ROOT."/includes/modules/fichinter/modules_fichinter.php"); require_once(DOL_DOCUMENT_ROOT."/project.class.php"); require_once(DOL_DOCUMENT_ROOT."/lib/fichinter.lib.php"); -if (defined("FICHEINTER_ADDON") && is_readable(DOL_DOCUMENT_ROOT ."/includes/modules/fichinter/mod_".FICHEINTER_ADDON.".php")) +if (defined("FICHEINTER_ADDON") && is_readable(DOL_DOCUMENT_ROOT ."/includes/modules/fichinter/".FICHEINTER_ADDON.".php")) { - require_once(DOL_DOCUMENT_ROOT ."/includes/modules/fichinter/mod_".FICHEINTER_ADDON.".php"); + require_once(DOL_DOCUMENT_ROOT ."/includes/modules/fichinter/".FICHEINTER_ADDON.".php"); } $langs->load("companies"); @@ -166,13 +166,13 @@ if ($_GET["action"] == 'create') exit; } - $fix = new Fichinter($db); + $ficheinter = new Fichinter($db); - $file = "mod_".$conf->global->FICHEINTER_ADDON.".php"; + $obj = $conf->global->FICHEINTER_ADDON; + $file = $obj.".php"; - $obj = "mod_".$conf->global->FICHEINTER_ADDON; $modFicheinter = new $obj; - $numpr = $modFicheinter->getNextValue($societe); + $numpr = $modFicheinter->getNextValue($societe,$ficheinter); print "