From a7fbe00d4e4af6b3697e1f5c86dd128202e13abd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 31 Oct 2011 01:03:59 +0100 Subject: [PATCH] Fix: type must be text/javascript --- htdocs/core/js/datepicker.js.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/js/datepicker.js.php b/htdocs/core/js/datepicker.js.php index 5295fae667d..c5e21935080 100644 --- a/htdocs/core/js/datepicker.js.php +++ b/htdocs/core/js/datepicker.js.php @@ -37,8 +37,7 @@ session_cache_limiter(FALSE); require_once("../../main.inc.php"); // Define javascript type -header('Content-type: text/javascript'); -header("Content-type: text/html; charset=UTF-8"); +header('Content-type: text/javascript; charset=UTF-8'); // Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access. if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate'); else header('Cache-Control: no-cache');