Merge branch 'feat-sites' into feat-add-sites-comments

This commit is contained in:
Matej Bačo 2024-10-28 15:43:46 +01:00 committed by GitHub
commit eeba650f6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ class GetTemplate extends Base
$templates = Config::getParam('site-templates', []);
$allowedTemplates = \array_filter($templates, function ($item) use ($templateId) {
return $item['id'] === $templateId;
return $item['key'] === $templateId;
});
$template = array_shift($allowedTemplates);