Fixing style errors.

This commit is contained in:
stickler-ci 2023-02-17 09:25:42 +00:00
parent 81ff493622
commit cae9fe0e06
2 changed files with 5 additions and 6 deletions

View File

@ -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 '</td></tr>'."\n";
print '</table>'."\n";
print '</div>';
}

View File

@ -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');
}