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:
@@ -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'));
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user