mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Merge pull request #8878 from appwrite/fix-sites-notice
Fix: unwanted notice
This commit is contained in:
commit
d0808e0c1a
2 changed files with 4 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ return [
|
|||
'name' => 'Personal portfolio',
|
||||
'useCases' => ['starter'],
|
||||
'frameworks' => [
|
||||
...getFramework('SVELTEKIT', [
|
||||
getFramework('SVELTEKIT', [
|
||||
'serveRuntime' => 'static-1',
|
||||
'installCommand' => 'npm install --force',
|
||||
'providerRootDirectory' => './'
|
||||
|
|
|
|||
|
|
@ -44,9 +44,10 @@ class GetTemplate extends Base
|
|||
{
|
||||
$templates = Config::getParam('site-templates', []);
|
||||
|
||||
$template = array_shift(\array_filter($templates, function ($item) use ($templateId) {
|
||||
$allowedTemplates = \array_filter($templates, function ($item) use ($templateId) {
|
||||
return $item['id'] === $templateId;
|
||||
}));
|
||||
});
|
||||
$template = array_shift($allowedTemplates);
|
||||
|
||||
if (empty($template)) {
|
||||
throw new Exception(Exception::SITE_TEMPLATE_NOT_FOUND);
|
||||
|
|
|
|||
Loading…
Reference in a new issue