diff --git a/lib/private/Files/Template/TemplateManager.php b/lib/private/Files/Template/TemplateManager.php index 491d66d53e..44e1b10fa3 100644 --- a/lib/private/Files/Template/TemplateManager.php +++ b/lib/private/Files/Template/TemplateManager.php @@ -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(); }