Browse Source

Rename page to avoid to have an index.html page

Laurent Destailleur 4 years ago
parent
commit
dce3b3e7af

+ 1 - 1
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

+ 0 - 0
htdocs/externalsite/admin/index.html


+ 7 - 2
htdocs/externalsite/admin/externalsite.php → 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;