From 7b57ca83c0a2c857f21c6b452e4f564e4ce55930 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 15 May 2017 20:11:00 +0200 Subject: [PATCH] create base folders for pdf/profiles --- lam/lib/pdfstruct.inc | 2 +- lam/lib/profiles.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/pdfstruct.inc b/lam/lib/pdfstruct.inc index 63864973..f1e8fde6 100644 --- a/lam/lib/pdfstruct.inc +++ b/lam/lib/pdfstruct.inc @@ -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) { diff --git a/lam/lib/profiles.inc b/lam/lib/profiles.inc index 82aaa543..45f4d521 100644 --- a/lam/lib/profiles.inc +++ b/lam/lib/profiles.inc @@ -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) {