mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-14 04:49:46 +01:00
Fix google_analytics
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user