Merge pull request #8884 from appwrite/fix-sites-get-template

Fix: sites get template missing key
This commit is contained in:
Torsten Dittmann 2024-10-28 15:07:10 +01:00 committed by GitHub
commit d97b02add9
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);