From 65c046514ae8fcab54172a5215874bac367c90a1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 May 2008 20:38:21 +0000 Subject: [PATCH] Disable change of lang in demo --- htdocs/user/param_ihm.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/user/param_ihm.php b/htdocs/user/param_ihm.php index a89659c73e3..cb89d2e8a6c 100644 --- a/htdocs/user/param_ihm.php +++ b/htdocs/user/param_ihm.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2005-2008 Laurent Destailleur * * 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 @@ -14,14 +14,12 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/user/param_ihm.php \brief Onglet parametrage de la fiche utilisateur - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -153,7 +151,9 @@ if ($_GET["action"] == 'edit') $var=!$var; print ''.$langs->trans("Language").''; print ''.($conf->global->MAIN_LANG_DEFAULT=='auto'?$langs->trans("AutoDetectLang"):$conf->global->MAIN_LANG_DEFAULT).''; - print 'conf->MAIN_LANG_DEFAULT?" checked":"").'> '.$langs->trans("UsePersonalValue").''; + print 'conf->MAIN_LANG_DEFAULT?" checked":""); + print ! empty($conf->global->MAIN_DEMO)?' disabled="true"':''; // Disabled for demo + print '> '.$langs->trans("UsePersonalValue").''; print ''; $html=new Form($db); $html->select_lang($fuser->conf->MAIN_LANG_DEFAULT,'main_lang_default',1);