diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 8c5fe0c7dbf..9c075a36cd7 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -871,7 +871,7 @@ else $var=!$var; print ''.$langs->trans("FiscalMonthStart").''; $monthstart=(! empty($conf->global->SOCIETE_FISCAL_MONTH_START)) ? $conf->global->SOCIETE_FISCAL_MONTH_START : 1; - print monthArrayOrSelected($monthstart) . ''; + print dol_print_date(dol_mktime(12,0,0,$monthstart,1,2000,1),'%B','gm') . ''; print ""; diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 65d6f098aa3..16682a7b7a2 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -542,16 +542,18 @@ class FormOther */ function select_month($selected='',$htmlname='monthid',$useempty=0) { + global $langs; + require_once(DOL_DOCUMENT_ROOT."/core/lib/date.lib.php"); - $month = monthArrayOrSelected(-1); // Get array + $montharray = monthArray($langs); // Get array $select_month = '