From dce3b3e7af3bd760f3e45ec33e8be1cbd92230d3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 25 Mar 2021 03:47:45 +0100 Subject: [PATCH] Rename page to avoid to have an index.html page --- htdocs/core/modules/modExternalSite.class.php | 2 +- htdocs/externalsite/admin/index.html | 0 .../externalsite/admin/{externalsite.php => index.php} | 9 +++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 htdocs/externalsite/admin/index.html rename htdocs/externalsite/admin/{externalsite.php => index.php} (97%) diff --git a/htdocs/core/modules/modExternalSite.class.php b/htdocs/core/modules/modExternalSite.class.php index a996a55ddaa..71c3387ff5e 100644 --- a/htdocs/core/modules/modExternalSite.class.php +++ b/htdocs/core/modules/modExternalSite.class.php @@ -67,7 +67,7 @@ class modExternalSite extends DolibarrModules $this->dirs = array(); // Config pages. Put here list of php page names stored in admmin directory used to setup module - $this->config_page_url = array("externalsite.php@externalsite"); + $this->config_page_url = array("index.php@externalsite"); // Dependencies $this->depends = array(); // List of modules id that must be enabled if this module is enabled diff --git a/htdocs/externalsite/admin/index.html b/htdocs/externalsite/admin/index.html deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/htdocs/externalsite/admin/externalsite.php b/htdocs/externalsite/admin/index.php similarity index 97% rename from htdocs/externalsite/admin/externalsite.php rename to htdocs/externalsite/admin/index.php index dc9f7741463..1710a570c45 100644 --- a/htdocs/externalsite/admin/externalsite.php +++ b/htdocs/externalsite/admin/index.php @@ -21,9 +21,9 @@ */ /** - * \file htdocs/externalsite/admin/externalsite.php + * \file htdocs/externalsite/admin/index.php * \ingroup externalsite - * \brief Page de configuration du module externalsite + * \brief Page to setup module external site */ if (!defined('NOSCANPOSTFORINJECTION')) { @@ -43,6 +43,11 @@ $langs->loadLangs(array('admin', 'other', 'externalsite')); $action = GETPOST('action', 'aZ09'); + +/* + * Actions + */ + // Sauvegardes parametres if ($action == 'update') { $i = 0;