mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 16:14:16 +02:00
Flextype Core: Snippets Shortcodes - fixes.
This commit is contained in:
@@ -17,6 +17,6 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface;
|
||||
|
||||
// Snippets
|
||||
// Shortcode: [snippets fetch=snippet-name]
|
||||
$flextype['shortcodes']->addHandler('snippets', function(ShortcodeInterface $s) {
|
||||
return Snippets::get($s->getParameter('fetch'));
|
||||
$flextype['shortcodes']->addHandler('snippets', function(ShortcodeInterface $s) use ($flextype) {
|
||||
return $flextype['shortcodes']->fetch($s->getParameter('fetch'));
|
||||
});
|
||||
|
Reference in New Issue
Block a user