diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/GetTemplate.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/GetTemplate.php index f424d5ff0e..a9218a3b9c 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Sites/GetTemplate.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/GetTemplate.php @@ -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);