From 440e144892408491fda7b3a1ff0924bd0e94d45a Mon Sep 17 00:00:00 2001 From: aspangaro Date: Thu, 16 Jul 2015 22:29:04 +0200 Subject: [PATCH] Fix: #3230 [Leaves] Module setup page is useless --- htdocs/core/modules/modHoliday.class.php | 2 +- htdocs/holiday/admin/holiday.php | 71 ------------------------ htdocs/holiday/admin/index.html | 0 3 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 htdocs/holiday/admin/holiday.php delete mode 100644 htdocs/holiday/admin/index.html diff --git a/htdocs/core/modules/modHoliday.class.php b/htdocs/core/modules/modHoliday.class.php index 11ed1f7c835..fcc4930e34b 100644 --- a/htdocs/core/modules/modHoliday.class.php +++ b/htdocs/core/modules/modHoliday.class.php @@ -80,7 +80,7 @@ class modHoliday extends DolibarrModules //$this->style_sheet = '/mymodule/mymodule.css.php'; // Config pages. Put here list of php page names stored in admmin directory used to setup module. - $this->config_page_url = array("holiday.php?leftmenu=setup@holiday"); + // $this->config_page_url = array("holiday.php?leftmenu=setup@holiday"); // Dependencies $this->depends = array(); // List of modules id that must be enabled if this module is enabled diff --git a/htdocs/holiday/admin/holiday.php b/htdocs/holiday/admin/holiday.php deleted file mode 100644 index c1222213b5c..00000000000 --- a/htdocs/holiday/admin/holiday.php +++ /dev/null @@ -1,71 +0,0 @@ - - * Copyright (C) 2011 Dimitri Mouillard - * Copyright (C) 2012 Regis Houssin - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/** - * Page module configuration paid holiday. - * - * \file holiday.php - * \ingroup holiday - * \brief Page module configuration paid holiday. - */ - -require '../../main.inc.php'; -require DOL_DOCUMENT_ROOT.'/holiday/class/holiday.class.php'; -require_once DOL_DOCUMENT_ROOT. '/core/class/html.form.class.php'; -require_once DOL_DOCUMENT_ROOT. '/user/class/user.class.php'; -require_once DOL_DOCUMENT_ROOT. '/user/class/usergroup.class.php'; - -$action=GETPOST('action'); -$optName=GETPOST('optName'); -$optValue=GETPOST('optValue'); - -$langs->load("admin"); -$langs->load("holiday"); - -// Si pas administrateur -if (! $user->admin) accessforbidden(); - - -/* - * View - */ - -// Vérification si module activé -if (empty($conf->holiday->enabled)) print $langs->trans('NotActiveModCP'); - -llxheader('',$langs->trans('TitleAdminCP')); - -$linkback=''.$langs->trans("BackToModuleList").''; -print_fiche_titre($langs->trans('ConfCP'), $linkback, 'title_hrm.png'); - -$cp = new Holiday($db); - -print '
'.$langs->trans("GoIntoDictionaryHolidayTypes").'

'; - -$var=!$var; -print '
'.$langs->trans('LastUpdateCP').': '."\n"; -if ($cp->getConfCP('lastUpdate')) print ''.dol_print_date($db->jdate($cp->getConfCP('lastUpdate')),'dayhour','tzuser').''; -else print $langs->trans('None'); -print "

\n"; - - -// Fin de page -llxFooter(); - -if (is_object($db)) $db->close(); \ No newline at end of file diff --git a/htdocs/holiday/admin/index.html b/htdocs/holiday/admin/index.html deleted file mode 100644 index e69de29bb2d..00000000000