FIX: reset namespace and module ID after each registered path
This commit is contained in:
@@ -73,6 +73,7 @@ class TemplateRegistrator
|
|||||||
public function unsetNamespace()
|
public function unsetNamespace()
|
||||||
{
|
{
|
||||||
$this->namespace = null;
|
$this->namespace = null;
|
||||||
|
$this->setModuleId(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -95,6 +96,8 @@ class TemplateRegistrator
|
|||||||
|
|
||||||
// register path
|
// register path
|
||||||
$this->registerPath($this->registeredPath, $name);
|
$this->registerPath($this->registeredPath, $name);
|
||||||
|
|
||||||
|
$this->unsetNamespace();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -194,6 +197,8 @@ class TemplateRegistrator
|
|||||||
'editable' => 1
|
'editable' => 1
|
||||||
];
|
];
|
||||||
|
|
||||||
|
echo 'ukladam do db '.$templateName."\n";
|
||||||
|
|
||||||
// save template into database
|
// save template into database
|
||||||
$newTemplate = Template::create($params);
|
$newTemplate = Template::create($params);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user