create base folders for pdf/profiles
This commit is contained in:
parent
3933081282
commit
7b57ca83c0
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue