From 9dad0b532578df3a1cac67ec68c3cdeb2e83157b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 27 Oct 2011 01:00:21 +0200 Subject: [PATCH] Fix: A theme must only change look, not options --- htdocs/admin/ihm.php | 3 --- htdocs/theme/bureau2crea/init_ihm.php | 18 ------------------ 2 files changed, 21 deletions(-) delete mode 100644 htdocs/theme/bureau2crea/init_ihm.php diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index a3d09caff99..e49910e2745 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -66,9 +66,6 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update') dolibarr_set_const($db, "MAIN_FIRSTNAME_NAME_POSITION", $_POST["MAIN_FIRSTNAME_NAME_POSITION"],'chaine',0,'',$conf->entity); dolibarr_set_const($db, "MAIN_THEME", $_POST["main_theme"],'chaine',0,'',$conf->entity); - if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/init_ihm.php')){ - include_once (DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/init_ihm.php'); - } dolibarr_set_const($db, "MAIN_SEARCHFORM_CONTACT", $_POST["MAIN_SEARCHFORM_CONTACT"],'chaine',0,'',$conf->entity); dolibarr_set_const($db, "MAIN_SEARCHFORM_SOCIETE", $_POST["MAIN_SEARCHFORM_SOCIETE"],'chaine',0,'',$conf->entity); diff --git a/htdocs/theme/bureau2crea/init_ihm.php b/htdocs/theme/bureau2crea/init_ihm.php deleted file mode 100644 index 22864c9a584..00000000000 --- a/htdocs/theme/bureau2crea/init_ihm.php +++ /dev/null @@ -1,18 +0,0 @@ - - * - * 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 2 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 . - */ - -dolibarr_set_const($db, "MAIN_JS_ON_PAYMENT", 1,'chaine',0,'',$conf->entity); \ No newline at end of file