create base folders for pdf/profiles

This commit is contained in:
Roland Gruber 2017-05-15 20:11:00 +02:00
parent 3933081282
commit 7b57ca83c0
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ function installPDFTemplates() {
}
$basePath = dirname(__FILE__) . '/../config/pdf/' . $_SESSION['config']->getName();
if (!file_exists($basePath)) {
mkdir($basePath);
mkdir($basePath, 0700, true);
}
$typeManager = new \LAM\TYPES\TypeManager();
foreach ($typeManager->getConfiguredTypes() as $type) {

View File

@ -253,7 +253,7 @@ function installProfileTemplates() {
}
$basePath = dirname(__FILE__) . '/../config/profiles/' . $_SESSION['config']->getName();
if (!file_exists($basePath)) {
mkdir($basePath);
mkdir($basePath, 0700, true);
}
$typeManager = new \LAM\TYPES\TypeManager();
foreach ($typeManager->getConfiguredTypes() as $type) {