mirror of
https://github.com/flextype/flextype.git
synced 2025-08-06 13:16:45 +02:00
@@ -34,6 +34,8 @@ emitter()->addListener('onEntriesFetchSingleField', static function (): void {
|
||||
|
||||
$field = entries()->registry()->get('methods.fetch.field');
|
||||
|
||||
$vars = [];
|
||||
|
||||
// Convert entry fields to vars.
|
||||
foreach (json_decode(json_encode((object) entries()->registry()->get('methods.fetch.result')), false) as $key => $value) {
|
||||
$vars[$key] = $value;
|
||||
|
@@ -41,6 +41,6 @@ parsers()->shortcodes()->addHandler('eval', static function (ShortcodeInterface
|
||||
});
|
||||
|
||||
parsers()->shortcodes()->addHandler('compile', static function (ShortcodeInterface $s) {
|
||||
return expression()->compile(parsers()->shortcodes()->parse($s->getContent()));
|
||||
return parsers()->expressions()->compile(parsers()->shortcodes()->parse($s->getContent()));
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user