From 41ee95bab4308825fb69a71ae7d34de90f50d1f0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Dec 2006 23:20:18 +0000 Subject: [PATCH] On utilise syntaxe qui permet d'avoir plusieurs pages de config par modules, pour tous les modules --- htdocs/includes/modules/modAdherent.class.php | 2 +- htdocs/includes/modules/modBarcode.class.php | 2 +- htdocs/includes/modules/modBookmark.class.php | 2 +- htdocs/includes/modules/modBookmark4u.class.php | 2 +- htdocs/includes/modules/modClickToDial.class.php | 2 +- htdocs/includes/modules/modCommande.class.php | 2 +- htdocs/includes/modules/modComptabilite.class.php | 2 +- htdocs/includes/modules/modComptabiliteExpert.class.php | 2 +- htdocs/includes/modules/modDeplacement.class.php | 2 +- htdocs/includes/modules/modDon.class.php | 2 +- htdocs/includes/modules/modEnergie.class.php | 7 +++---- htdocs/includes/modules/modExpedition.class.php | 2 +- htdocs/includes/modules/modFacture.class.php | 2 +- htdocs/includes/modules/modFckeditor.class.php | 2 +- htdocs/includes/modules/modFicheinter.class.php | 2 +- htdocs/includes/modules/modFournisseur.class.php | 2 +- htdocs/includes/modules/modLdap.class.php | 2 +- htdocs/includes/modules/modMailing.class.php | 2 +- htdocs/includes/modules/modNotification.class.php | 2 +- htdocs/includes/modules/modProduit.class.php | 4 +++- htdocs/includes/modules/modPropale.class.php | 2 +- htdocs/includes/modules/modSociete.class.php | 2 +- htdocs/includes/modules/modStock.class.php | 2 +- htdocs/includes/modules/modSyslog.class.php | 2 +- htdocs/includes/modules/modUser.class.php | 2 +- 25 files changed, 29 insertions(+), 28 deletions(-) diff --git a/htdocs/includes/modules/modAdherent.class.php b/htdocs/includes/modules/modAdherent.class.php index beebe65d0d7..fc9720f5713 100644 --- a/htdocs/includes/modules/modAdherent.class.php +++ b/htdocs/includes/modules/modAdherent.class.php @@ -68,7 +68,7 @@ class modAdherent extends DolibarrModules // Config pages //------------- - $this->config_page_url = "adherent.php"; + $this->config_page_url = array("adherent.php"); // Dépendances //------------ diff --git a/htdocs/includes/modules/modBarcode.class.php b/htdocs/includes/modules/modBarcode.class.php index c02f0fe6009..dba40d80624 100644 --- a/htdocs/includes/modules/modBarcode.class.php +++ b/htdocs/includes/modules/modBarcode.class.php @@ -72,7 +72,7 @@ class modBarcode extends DolibarrModules $this->requiredby = array(); // Config pages - $this->config_page_url = "barcode.php"; + $this->config_page_url = array("barcode.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modBookmark.class.php b/htdocs/includes/modules/modBookmark.class.php index 8fe5b8246b5..cc59329b000 100644 --- a/htdocs/includes/modules/modBookmark.class.php +++ b/htdocs/includes/modules/modBookmark.class.php @@ -69,7 +69,7 @@ class modBookmark extends DolibarrModules $this->requiredby = array(); // Config pages - //$this->config_page_url = ""; + //$this->config_page_url = array(); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modBookmark4u.class.php b/htdocs/includes/modules/modBookmark4u.class.php index cd372506eae..105338ea670 100644 --- a/htdocs/includes/modules/modBookmark4u.class.php +++ b/htdocs/includes/modules/modBookmark4u.class.php @@ -69,7 +69,7 @@ class modBookmark4u extends DolibarrModules $this->requiredby = array(); // Config pages - $this->config_page_url = ""; + $this->config_page_url = array(); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modClickToDial.class.php b/htdocs/includes/modules/modClickToDial.class.php index 7d5b23845d5..73e4eb5e4fb 100644 --- a/htdocs/includes/modules/modClickToDial.class.php +++ b/htdocs/includes/modules/modClickToDial.class.php @@ -69,7 +69,7 @@ class modClickToDial extends DolibarrModules $this->requiredby = array(); // Config pages - $this->config_page_url = "clicktodial.php"; + $this->config_page_url = array("clicktodial.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modCommande.class.php b/htdocs/includes/modules/modCommande.class.php index fc1523bd36f..633d8303df8 100644 --- a/htdocs/includes/modules/modCommande.class.php +++ b/htdocs/includes/modules/modCommande.class.php @@ -65,7 +65,7 @@ class modCommande extends DolibarrModules $this->dirs = array(); // Config pages - $this->config_page_url = "commande.php"; + $this->config_page_url = array("commande.php"); // Dépendances $this->depends = array("modCommercial"); diff --git a/htdocs/includes/modules/modComptabilite.class.php b/htdocs/includes/modules/modComptabilite.class.php index b691269821f..5aa39367ca9 100644 --- a/htdocs/includes/modules/modComptabilite.class.php +++ b/htdocs/includes/modules/modComptabilite.class.php @@ -65,7 +65,7 @@ class modComptabilite extends DolibarrModules $this->picto=''; // Config pages - $this->config_page_url = "compta.php"; + $this->config_page_url = array("compta.php"); // Dépendances $this->depends = array("modFacture","modBanque"); diff --git a/htdocs/includes/modules/modComptabiliteExpert.class.php b/htdocs/includes/modules/modComptabiliteExpert.class.php index c16689a382c..819c022141e 100644 --- a/htdocs/includes/modules/modComptabiliteExpert.class.php +++ b/htdocs/includes/modules/modComptabiliteExpert.class.php @@ -66,7 +66,7 @@ class modComptabiliteExpert extends DolibarrModules $this->special = 0; // Config pages - $this->config_page_url = "comptaexpert.php"; + $this->config_page_url = array("comptaexpert.php"); // Dépendances $this->depends = array("modFacture","modBanque"); diff --git a/htdocs/includes/modules/modDeplacement.class.php b/htdocs/includes/modules/modDeplacement.class.php index 3ec80f30d96..746982e9f89 100644 --- a/htdocs/includes/modules/modDeplacement.class.php +++ b/htdocs/includes/modules/modDeplacement.class.php @@ -65,7 +65,7 @@ class modDeplacement extends DolibarrModules $this->dirs = array(); // Config pages - $this->config_page_url = ""; + $this->config_page_url = array(); // Dépendances $this->depends = array(); diff --git a/htdocs/includes/modules/modDon.class.php b/htdocs/includes/modules/modDon.class.php index d91814ab037..e1d338eec77 100644 --- a/htdocs/includes/modules/modDon.class.php +++ b/htdocs/includes/modules/modDon.class.php @@ -66,7 +66,7 @@ class modDon extends DolibarrModules $this->requiredby = array(); // Config pages - $this->config_page_url = "dons.php"; + $this->config_page_url = array("dons.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modEnergie.class.php b/htdocs/includes/modules/modEnergie.class.php index 84a36077fe5..95a1ee1d10b 100644 --- a/htdocs/includes/modules/modEnergie.class.php +++ b/htdocs/includes/modules/modEnergie.class.php @@ -67,14 +67,13 @@ class modEnergie extends DolibarrModules // Dépendances $this->depends = array(); - $this->config_page_url = ""; + + // Config pages + $this->config_page_url = array("energie.php"); // Constantes $this->const = array(); - // Config pages - $this->config_page_url = "energie.php"; - // Boxes $this->boxes = array(); diff --git a/htdocs/includes/modules/modExpedition.class.php b/htdocs/includes/modules/modExpedition.class.php index 85e4ea0b0c8..5f2a4f01d2b 100644 --- a/htdocs/includes/modules/modExpedition.class.php +++ b/htdocs/includes/modules/modExpedition.class.php @@ -63,7 +63,7 @@ class modExpedition extends DolibarrModules $this->dirs = array(); // Config pages - $this->config_page_url = "confexped.php"; + $this->config_page_url = array("confexped.php"); // Dépendances $this->depends = array("modCommande"); diff --git a/htdocs/includes/modules/modFacture.class.php b/htdocs/includes/modules/modFacture.class.php index 9d6e507eaab..24df726e174 100644 --- a/htdocs/includes/modules/modFacture.class.php +++ b/htdocs/includes/modules/modFacture.class.php @@ -73,7 +73,7 @@ class modFacture extends DolibarrModules $this->langfiles = array("bills","companies"); // Config pages - $this->config_page_url = "facture.php"; + $this->config_page_url = array("facture.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modFckeditor.class.php b/htdocs/includes/modules/modFckeditor.class.php index f710507b4f7..679e663f637 100644 --- a/htdocs/includes/modules/modFckeditor.class.php +++ b/htdocs/includes/modules/modFckeditor.class.php @@ -60,7 +60,7 @@ class modFckeditor extends DolibarrModules $this->dirs = array(); // Config pages - $this->config_page_url = "fckeditor.php"; + $this->config_page_url = array("fckeditor.php"); // Dépendances $this->depends = array(); diff --git a/htdocs/includes/modules/modFicheinter.class.php b/htdocs/includes/modules/modFicheinter.class.php index 417a30ae682..e959753eaac 100644 --- a/htdocs/includes/modules/modFicheinter.class.php +++ b/htdocs/includes/modules/modFicheinter.class.php @@ -68,7 +68,7 @@ class modFicheinter extends DolibarrModules $this->dirs = array(); // Config pages - $this->config_page_url = "fichinter.php"; + $this->config_page_url = array("fichinter.php"); // Dépendances $this->depends = array("modSociete"); diff --git a/htdocs/includes/modules/modFournisseur.class.php b/htdocs/includes/modules/modFournisseur.class.php index 11970dab115..0af64230da4 100644 --- a/htdocs/includes/modules/modFournisseur.class.php +++ b/htdocs/includes/modules/modFournisseur.class.php @@ -71,7 +71,7 @@ class modFournisseur extends DolibarrModules $this->langfiles = array("bills","companies","suppliers"); // Config pages - $this->config_page_url = "fournisseur.php"; + $this->config_page_url = array("fournisseur.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modLdap.class.php b/htdocs/includes/modules/modLdap.class.php index 124788bdedd..4cba94a1908 100644 --- a/htdocs/includes/modules/modLdap.class.php +++ b/htdocs/includes/modules/modLdap.class.php @@ -60,7 +60,7 @@ class modLdap extends DolibarrModules $this->dirs = array(); // Config pages - $this->config_page_url = "ldap.php"; + $this->config_page_url = array("ldap.php"); // Dépendances $this->depends = array(); diff --git a/htdocs/includes/modules/modMailing.class.php b/htdocs/includes/modules/modMailing.class.php index ff1b40c4836..d8e10fa4ba8 100644 --- a/htdocs/includes/modules/modMailing.class.php +++ b/htdocs/includes/modules/modMailing.class.php @@ -68,7 +68,7 @@ class modMailing extends DolibarrModules $this->langfiles = array("mails"); // Config pages - $this->config_page_url = "mailing.php"; + $this->config_page_url = array("mailing.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modNotification.class.php b/htdocs/includes/modules/modNotification.class.php index 3f09892002e..de7a945cca0 100644 --- a/htdocs/includes/modules/modNotification.class.php +++ b/htdocs/includes/modules/modNotification.class.php @@ -68,7 +68,7 @@ class modNotification extends DolibarrModules $this->langfiles = array("mails"); // Config pages - $this->config_page_url = "notification.php"; + $this->config_page_url = array("notification.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modProduit.class.php b/htdocs/includes/modules/modProduit.class.php index 78e7f788a43..d51a89a9fe2 100644 --- a/htdocs/includes/modules/modProduit.class.php +++ b/htdocs/includes/modules/modProduit.class.php @@ -70,7 +70,9 @@ class modProduit extends DolibarrModules // Dépendances $this->depends = array(); $this->requiredby = array("modStock","modService","modBarcode"); - $this->config_page_url = "produit.php"; + + // Config pages + $this->config_page_url = array("produit.php"); $this->langfiles = array("products","companies"); // Constantes diff --git a/htdocs/includes/modules/modPropale.class.php b/htdocs/includes/modules/modPropale.class.php index 7cdb346f0c1..cc4d07c500d 100644 --- a/htdocs/includes/modules/modPropale.class.php +++ b/htdocs/includes/modules/modPropale.class.php @@ -67,7 +67,7 @@ class modPropale extends DolibarrModules // Dépendances $this->depends = array("modSociete","modCommercial"); - $this->config_page_url = "propale.php"; + $this->config_page_url = array("propale.php"); // Constantes $this->const = array(); diff --git a/htdocs/includes/modules/modSociete.class.php b/htdocs/includes/modules/modSociete.class.php index bb33276e301..09da6b738ee 100644 --- a/htdocs/includes/modules/modSociete.class.php +++ b/htdocs/includes/modules/modSociete.class.php @@ -63,7 +63,7 @@ class modSociete extends DolibarrModules $this->const_name = 'MAIN_MODULE_SOCIETE'; $this->special = 0; - $this->config_page_url = "societe.php"; + $this->config_page_url = array("societe.php"); $this->picto='company'; // Dir diff --git a/htdocs/includes/modules/modStock.class.php b/htdocs/includes/modules/modStock.class.php index dea922f6e14..e48dfb1c947 100644 --- a/htdocs/includes/modules/modStock.class.php +++ b/htdocs/includes/modules/modStock.class.php @@ -65,7 +65,7 @@ class modStock extends DolibarrModules // Dir $this->dirs = array(); - $this->config_page_url = "stock.php"; + $this->config_page_url = array("stock.php"); // Dépendences $this->depends = array("modProduit"); diff --git a/htdocs/includes/modules/modSyslog.class.php b/htdocs/includes/modules/modSyslog.class.php index daff6b207f8..f0b5179d5d9 100644 --- a/htdocs/includes/modules/modSyslog.class.php +++ b/htdocs/includes/modules/modSyslog.class.php @@ -63,7 +63,7 @@ class modSyslog extends DolibarrModules $this->dirs = array(); // Config pages - $this->config_page_url = "syslog.php"; + $this->config_page_url = array("syslog.php"); // Dépendances $this->depends = array(); diff --git a/htdocs/includes/modules/modUser.class.php b/htdocs/includes/modules/modUser.class.php index f7d4f7df6da..b4c20f98082 100644 --- a/htdocs/includes/modules/modUser.class.php +++ b/htdocs/includes/modules/modUser.class.php @@ -66,7 +66,7 @@ class modUser extends DolibarrModules $this->dirs = array(); // Config pages - // $this->config_page_url = "/user/admin/index.php"; + // $this->config_page_url = array("/user/admin/index.php"); // Dépendances $this->depends = array();