From 8427ade0fa028108f6176cf904a29851066b0d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 28 Oct 2024 15:04:48 +0100 Subject: [PATCH] Fix sites get template missing key --- src/Appwrite/Platform/Modules/Sites/Http/Sites/GetTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);