2
0
forked from Wavyzz/dolibarr

Update templates

This commit is contained in:
Laurent Destailleur
2019-08-15 00:55:47 +02:00
parent dfe2c3de74
commit f81463af0c
5 changed files with 81 additions and 0 deletions

View File

@@ -322,6 +322,26 @@ function dolSaveManifestJson($file, $content)
return $result;
}
/**
* Save content of a page on disk
*
* @param string $file Full path of filename to generate
* @param string $content Content of file
* @return boolean True if OK
*/
function dolSaveReadme($file, $content)
{
global $conf, $pathofwebsite;
dol_syslog("Save README.md file into ".$file);
dol_mkdir($pathofwebsite);
$result = file_put_contents($file, $content);
if (! empty($conf->global->MAIN_UMASK))
@chmod($file, octdec($conf->global->MAIN_UMASK));
return $result;
}
/**