mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix save master file of a website
This commit is contained in:
parent
e8d29c644b
commit
7a4c1cddc8
|
|
@ -865,6 +865,18 @@ if ($action == 'updatecss')
|
|||
$res = $object->fetch(0, $websitekey);
|
||||
$website = $object;
|
||||
|
||||
// Save master.inc.php file
|
||||
$filemaster=$pathofwebsite.'/master.inc.php';
|
||||
|
||||
dol_syslog("Save master file ".$filemaster);
|
||||
|
||||
dol_mkdir($pathofwebsite);
|
||||
|
||||
// Now generate the master.inc.php page
|
||||
$result = dolSaveMasterFile($filemaster);
|
||||
if (! $result) setEventMessages('Failed to write file '.$filemaster, null, 'errors');
|
||||
|
||||
|
||||
// Html header file
|
||||
$htmlheadercontent ='';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user