1
0
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:
Awilum
2019-03-03 21:34:19 +03:00
parent a824858736
commit 1a9c81282b

View File

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