1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 21:56:25 +02:00

fix(core): issue with emitter twig function #234

This commit is contained in:
Awilum
2019-09-14 21:20:15 +03:00
parent 3953c22ea9
commit 426a07363c
2 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ class EmitterTwigExtension extends Twig_Extension implements Twig_Extension_Glob
public function getGlobals()
{
return [
'emmiter' => new EmitterTwig($this->flextype),
'emitter' => new EmitterTwig($this->flextype),
];
}
}
@@ -56,7 +56,7 @@ class EmitterTwig
/**
* Emitting event
*/
public function emmit($event)
public function emit($event)
{
return $this->flextype['emitter']->emit($event);
}

View File

@@ -9,7 +9,7 @@
<meta name="robots" content="{% if entry.robots %}{{ entry.robots }}{% else %}{{ registry.settings.robots }}{% endif %}">
<meta name="generator" content="Powered by Flextype {{ FLEXTYPE_VERSION }}" />
{{ emitter.emit('onThemeMeta') }}
{% do emitter.emit('onThemeMeta') %}
<title>{% if entry.title %}{{ entry.title|e('html') }} | {% endif %}{{ registry.settings.title|e('html') }}</title>
@@ -23,7 +23,7 @@
{% endfor %}
{% endfor %}
{{ emitter.emit('onThemeHeader') }}
{% do emitter.emit('onThemeHeader') %}
{{ snippets.exec('google-analytics')|raw }}
{% endblock %}
</head>
@@ -88,6 +88,6 @@
}
</script>
{{ emitter.emit('onThemeTail') }}
{% do emitter.emit('onThemeTail') %}
</body>
</html>