From 33fe18490a3c7767a05459b94f840074dbf8ff14 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 10 May 2014 15:50:32 +0200 Subject: [PATCH] Removed useless translation key --- htdocs/holiday/index.php | 5 +---- htdocs/langs/en_US/holiday.lang | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/htdocs/holiday/index.php b/htdocs/holiday/index.php index cea61ea5b59..4c660bf6526 100644 --- a/htdocs/holiday/index.php +++ b/htdocs/holiday/index.php @@ -186,10 +186,7 @@ if ($holiday_payes == '-1') { print_fiche_titre($langs->trans('CPTitreMenu')); - print '
'; - print ''.$langs->trans('CPErrorSQL'); - print ' '.$holiday->error.''; - print '
'; + dol_print_error($db, $langs->trans('Error').' '.$holiday->error); exit(); } diff --git a/htdocs/langs/en_US/holiday.lang b/htdocs/langs/en_US/holiday.lang index 0c755ca3301..da03299e0da 100644 --- a/htdocs/langs/en_US/holiday.lang +++ b/htdocs/langs/en_US/holiday.lang @@ -8,7 +8,6 @@ NotActiveModCP=You must enable the module holidays to view this page. NotConfigModCP=You must configure the module holidays to view this page. To do this, click here . NoCPforUser=You don't have a demand for holidays. AddCP=Apply for holidays -CPErrorSQL=An SQL error occurred: Employe=Employee DateDebCP=Start date DateFinCP=End date