Fix google_analytics

This commit is contained in:
slawkens
2023-07-22 10:43:23 +02:00
parent 191137282b
commit d82e3a21e5
3 changed files with 5 additions and 5 deletions

View File

@@ -529,8 +529,8 @@ function template_footer(): string
function template_ga_code()
{
global $config, $twig;
if(!isset($config['google_analytics_id'][0]))
global $twig;
if(!isset(setting('core.google_analytics_id')[0]))
return '';
return $twig->render('google_analytics.html.twig');