From e6e39ae003fae5f42119f3bfef3708bc3d81bedd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 14 Jul 2015 17:28:19 +0200 Subject: [PATCH] Fix: wrong translation --- htdocs/contact/info.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/contact/info.php b/htdocs/contact/info.php index 51a80d8d994..96e24a0b67c 100644 --- a/htdocs/contact/info.php +++ b/htdocs/contact/info.php @@ -1,7 +1,7 @@ * Copyright (C) 2004-2010 Laurent Destailleur - * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2005-2015 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 @@ -30,6 +30,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/contact.lib.php'; $langs->load("companies"); + // Security check $contactid = GETPOST("id",'int'); if ($user->societe_id) $socid=$user->societe_id; @@ -40,8 +41,9 @@ $result = restrictedArea($user, 'contact', $contactid, 'socpeople&societe'); /* * View */ +$title = (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("Contacts") : $langs->trans("ContactsAddresses")); -llxHeader('',$langs->trans("ContactsAddresses"),'EN:Module_Third_Parties|FR:Module_Tiers|ES:Módulo_Empresas'); +llxHeader('',$title,'EN:Module_Third_Parties|FR:Module_Tiers|ES:Módulo_Empresas'); $contact = new Contact($db); @@ -51,7 +53,7 @@ $contact->info($contactid); $head = contact_prepare_head($contact); -dol_fiche_head($head, 'info', $langs->trans("ContactsAddresses"), 0, 'contact'); +dol_fiche_head($head, 'info', $title, 0, 'contact'); print '
';