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')); }); });