1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

feat(shortcodes): add missed check for registry shortcode

This commit is contained in:
Awilum
2022-05-26 18:37:35 +03:00
parent dfce91988f
commit f52da91860

View File

@@ -28,7 +28,7 @@ parsers()->shortcodes()->addHandler('registry', static function (ShortcodeInterf
return '';
}
if ($s->getParameter('get') != null) {
if ($s->getParameter('get') != null && registry()->get('flextype.settings.parsers.shortcodes.shortcodes.registry.get.enabled') === true) {
$value = parsers()->shortcodes()->parse($s->getParameter('get'));
$default = ($s->getParameter('default') != null) ? parsers()->shortcodes()->parse($s->getParameter('default')) : null;