From b5717702a164fe7b479bd523083017784e221f59 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 4 Jan 2019 04:03:34 +0300 Subject: [PATCH] Flextype core: Snippets - fixed issue with shortcode --- flextype/Snippets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/Snippets.php b/flextype/Snippets.php index 7e6d85a5..59e9a2d7 100644 --- a/flextype/Snippets.php +++ b/flextype/Snippets.php @@ -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')); }); });