mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Merge branch 'feat-sites' into feat-add-sites-comments
This commit is contained in:
commit
eeba650f6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue