|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2007-2021, Tomasz Sowa
|
|
|
|
|
* Copyright (c) 2007-2023, Tomasz Sowa
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
@ -1652,12 +1652,14 @@ bool Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::CallModel
|
|
|
|
|
if( parameters.empty() )
|
|
|
|
|
{
|
|
|
|
|
FunInfo<StreamType> info(out_stream, parameters, empty, in_stream, stack_tab[stack_index-1], *stack_tab[stack_index-1].item);
|
|
|
|
|
PrepareEnvStruct(info);
|
|
|
|
|
found = model.get_raw_value(nullptr, field.c_str(), nullptr, info, str, false);
|
|
|
|
|
last_res = info.res;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
FunInfo<StreamType> info(out_stream, parameters, parameters[0].str, in_stream, stack_tab[stack_index-1], *stack_tab[stack_index-1].item);
|
|
|
|
|
PrepareEnvStruct(info);
|
|
|
|
|
found = model.get_raw_value(nullptr, field.c_str(), nullptr, info, str, false);
|
|
|
|
|
last_res = info.res;
|
|
|
|
|
}
|
|
|
|
|