diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index 037ac8bed89..dcb72cd2a18 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -1190,7 +1190,7 @@ if ($action == 'create')
//Time Type
print '
| '.$langs->trans("TimeType").' | ';
- print $form->select_type_duration('offsetunit');
+ print $form->selectTypeDuration('offsetunit');
print ' |
';
//Reminder Type
@@ -1203,7 +1203,7 @@ if ($action == 'create')
//Mail Model
print '| '.$langs->trans("EMailTemplates").' | ';
- print $form->select_model_mail('actioncommsend', 'actioncomm_send');
+ print $form->selectModelMail('actioncommsend', 'actioncomm_send');
print ' |
';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index d3b1589410e..153f1cdbae2 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5673,35 +5673,27 @@ class Form
return $retstring;
}
- // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
- * select_type_duration
+ * selectTypeDuration
*
* @param string $prefix Prefix
* @param string $selected Selected type
* @return string HTML select string
*/
- public function select_type_duration($prefix, $selected = 'minute')
+ public function selectTypeDuration($prefix, $selected = 'minute')
{
- // phpcs:enable
global $langs;
- $retstring = '';
-
$TDurationTypes = array('year'=>$langs->trans('Years'), 'month'=>$langs->trans('Month'), 'week'=>$langs->trans('Weeks'), 'day'=>$langs->trans('Days'), 'hour'=>$langs->trans('Hours'), 'minute'=>$langs->trans('Minutes'));
- $retstring .= '