Skip to content
Snippets Groups Projects
Unverified Commit 01113815 authored by Julius Härtl's avatar Julius Härtl
Browse files

Only create template directory if it is present in the default skeleton


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 4f90766b
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,10 @@ class TemplateManager implements ITemplateManager {
// Initial user setup without a provided path
if ($path === null) {
// All locations are default so we just need to rename the directory to the users language
if ($isDefaultSkeleton && $isDefaultTemplates && $userFolder->nodeExists('Templates')) {
if ($isDefaultSkeleton && $isDefaultTemplates) {
if (!$userFolder->nodeExists('Templates')) {
return '';
}
$newPath = $userFolder->getPath() . '/' . $userTemplatePath;
if ($newPath !== $userFolder->get('Templates')->getPath()) {
$userFolder->get('Templates')->move($newPath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment