From afe0aedbe9800907010691bdba6c93b2d4f347d8 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 1 Jul 2019 12:04:04 +0300 Subject: [PATCH] Flextype Core & Flextype Admin Panel: Snippets #165 - Snippets fetch changed to exec --- flextype/shortcodes/SnippetsShortcode.php | 4 ++-- .../plugins/admin/views/templates/extends/snippets/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 @@