From 6db517dd1452db6df0bc01eac6491367a420d94b Mon Sep 17 00:00:00 2001 From: Mathieu De Keyzer Date: Mon, 16 Dec 2024 09:29:29 +0100 Subject: [PATCH] fix(web/twig): ems_template_exists use template builder (#1062) --- skeleton/template/variables.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeleton/template/variables.twig b/skeleton/template/variables.twig index 4525814..a02a0d4 100644 --- a/skeleton/template/variables.twig +++ b/skeleton/template/variables.twig @@ -6,7 +6,7 @@ {% set wyiwygReplaces = { 'src="https://www.youtube.com/': 'allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen src="https://www.youtube-nocookie.com/', } %} - {% do emsch_assets_version(include('@EMSCH/template/asset_hash.twig'), null) %} + {% do emsch_assets_version(ems_template_exists('@EMSCH/template/asset_hash.twig') ? include('@EMSCH/template/asset_hash.twig') : 'demo', null) %} {% set baseUrl = '/' %} {% if app.user %} {% set baseUrl = "/channel/#{trans_default_domain}" %}