diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index 7102217cb8e..d9d734b8705 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -300,8 +300,8 @@ if ($action == 'update') { } if ($mode == 'css') { - $data = GETPOST('CUSTOM_CSS','none'); - file_put_contents(DOL_DATA_ROOT.'/admin/customcss.css',$data); + $data = GETPOST('CUSTOM_CSS', 'none'); + file_put_contents(DOL_DATA_ROOT.'/admin/customcss.css', $data); } $_SESSION["mainmenu"] = ""; // The menu manager may have changed @@ -700,13 +700,12 @@ if ($mode == 'css') { $customcssValue = file_get_contents(DOL_DATA_ROOT.'/admin/customcss.css'); - $doleditor = new DolEditor('CUSTOM_CSS', $customcssValue, '', 400, 'Basic', 'In', false, true, 'ace',80,80,0); - $doleditor->Create(0,'',true,'css','css'); + $doleditor = new DolEditor('CUSTOM_CSS', $customcssValue, '', 400, 'Basic', 'In', false, true, 'ace', 80, 80, 0); + $doleditor->Create(0, '', true, 'css', 'css'); print ''."\n"; print ''."\n"; print ''; - } diff --git a/htdocs/theme/custom.css.php b/htdocs/theme/custom.css.php index d3502782749..011d1624a3e 100644 --- a/htdocs/theme/custom.css.php +++ b/htdocs/theme/custom.css.php @@ -30,6 +30,6 @@ if (empty($dolibarr_nocache)) { header('Cache-Control: no-cache'); } -if(file_exists(DOL_DATA_ROOT.'/admin/customcss.css')) { +if (file_exists(DOL_DATA_ROOT.'/admin/customcss.css')) { readfile(DOL_DATA_ROOT.'/admin/customcss.css'); }