From c743b7803ecb27056a7d2f99d76f10ff09c97350 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Wed, 16 Jan 2019 13:15:10 +0100 Subject: [PATCH] Clean code and add translation --- htdocs/admin/holiday.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/holiday.php b/htdocs/admin/holiday.php index 82037fa85d1..c687a6fbc2d 100644 --- a/htdocs/admin/holiday.php +++ b/htdocs/admin/holiday.php @@ -221,8 +221,6 @@ foreach ($dirmodels as $reldir) $handle = opendir($dir); if (is_resource($handle)) { - $var=true; - while (($file = readdir($handle))!==false) { if (substr($file, 0, 12) == 'mod_holiday_' && substr($file, dol_strlen($file)-3, 3) == 'php') @@ -309,7 +307,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) print load_fiche_titre($langs->trans("TemplatePDFHolidays"),'',''); -// Defini tableau def des modeles +// Defined model definition table $def = array(); $sql = "SELECT nom"; $sql.= " FROM ".MAIN_DB_PREFIX."document_model"; @@ -405,7 +403,7 @@ foreach ($dirmodels as $reldir) print ""; } - // Defaut + // Default print ''; if ($conf->global->HOLIDAY_ADDON_PDF == $name) {