Fixing style errors.
This commit is contained in:
parent
81ff493622
commit
cae9fe0e06
@ -300,8 +300,8 @@ if ($action == 'update') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($mode == 'css') {
|
if ($mode == 'css') {
|
||||||
$data = GETPOST('CUSTOM_CSS','none');
|
$data = GETPOST('CUSTOM_CSS', 'none');
|
||||||
file_put_contents(DOL_DATA_ROOT.'/admin/customcss.css',$data);
|
file_put_contents(DOL_DATA_ROOT.'/admin/customcss.css', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
$_SESSION["mainmenu"] = ""; // The menu manager may have changed
|
$_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');
|
$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 = new DolEditor('CUSTOM_CSS', $customcssValue, '', 400, 'Basic', 'In', false, true, 'ace', 80, 80, 0);
|
||||||
$doleditor->Create(0,'',true,'css','css');
|
$doleditor->Create(0, '', true, 'css', 'css');
|
||||||
print '</td></tr>'."\n";
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
print '</table>'."\n";
|
print '</table>'."\n";
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,6 @@ if (empty($dolibarr_nocache)) {
|
|||||||
header('Cache-Control: no-cache');
|
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');
|
readfile(DOL_DATA_ROOT.'/admin/customcss.css');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user