diff --git a/flextype/shortcodes/SnippetsShortcode.php b/flextype/shortcodes/SnippetsShortcode.php index 2cf14b86..7baf3b86 100644 --- a/flextype/shortcodes/SnippetsShortcode.php +++ b/flextype/shortcodes/SnippetsShortcode.php @@ -15,7 +15,7 @@ namespace Flextype; use Thunder\Shortcode\ShortcodeFacade; use Thunder\Shortcode\Shortcode\ShortcodeInterface; -// Shortcode: [snippets_fetch id="snippet-name"] -$flextype['shortcodes']->addHandler('snippets_fetch', function (ShortcodeInterface $s) use ($flextype) { +// Shortcode: [snippets_exec id="snippet-name"] +$flextype['shortcodes']->addHandler('snippets_exec', function (ShortcodeInterface $s) use ($flextype) { return $flextype['snippets']->exec($s->getParameter('id')); }); diff --git a/site/plugins/admin/views/templates/extends/snippets/index.html b/site/plugins/admin/views/templates/extends/snippets/index.html index 2cee2b0e..3d7cc509 100644 --- a/site/plugins/admin/views/templates/extends/snippets/index.html +++ b/site/plugins/admin/views/templates/extends/snippets/index.html @@ -68,7 +68,7 @@