Merge pull request #25446 from nextcloud/bugfix/noid/avoid-duplicate-template-registration
Avoid template creators being registered multiple times
This commit is contained in:
commit
9db3b28983
|
@ -115,6 +115,9 @@ class TemplateManager implements ITemplateManager {
|
|||
}
|
||||
|
||||
public function getTypes(): array {
|
||||
if (!empty($this->types)) {
|
||||
return $this->types;
|
||||
}
|
||||
foreach ($this->registeredTypes as $registeredType) {
|
||||
$this->types[] = $registeredType();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue