FIX: reset namespace and module ID after each registered path

This commit is contained in:
Michal Kváček
2016-08-15 22:24:23 +02:00
parent ae1123ba39
commit 206e5201b8
@@ -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);