Skip to content
Snippets Groups Projects
Commit ef0fac80 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Force type javascript

parent 415c04e8
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,13 @@ session_cache_limiter(FALSE);
require_once("../../main.inc.php");
// Define javascript type
header('Content-type: text/javascript');
// 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');
// Define tradMonths javascript array (we define this in datepicker AND in parent page to avoid errors with IE8)
$tradMonths=array(
$langs->trans("January"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment