1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

Flextype core: Snippets - fixed issue with shortcode

This commit is contained in:
Awilum
2019-01-04 04:03:34 +03:00
parent ec4c6b2adf
commit b5717702a1

View File

@@ -19,7 +19,7 @@ use Flextype\Component\Event\Event;
Event::addListener('onShortcodesInitialized', function () {
// Shortcode: [snippet name=snippet-name]
Content::shortcode()->addHandler('snippet', function(ShortcodeInterface $s) {
Entries::shortcode()->addHandler('snippet', function(ShortcodeInterface $s) {
return Snippet::get($s->getParameter('name'));
});
});