mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Merge pull request #8884 from appwrite/fix-sites-get-template
Fix: sites get template missing key
This commit is contained in:
commit
d97b02add9
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