updated to the new Ezc API
[ezc stream] has gone, now we have [ezc out] and [out] the output streams have names now: it's a std::map, before we have a std::vector and the streams are serialized to "out" space in json Request::out_streams[] are split into Request::out_main_stream and Request::out_streams class git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1017 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -334,7 +334,11 @@ void item_run(Info & i)
|
||||
item_run_content.Clear();
|
||||
InitGenerator(ezc_generator);
|
||||
ezc_generator.SetPattern(*p);
|
||||
ezc_generator.Generate(item_run_content);
|
||||
|
||||
if( config->allow_ezc_out_in_executable_items )
|
||||
ezc_generator.Generate(item_run_content, cur->request->out_streams);
|
||||
else
|
||||
ezc_generator.Generate(item_run_content);
|
||||
|
||||
item_print_content(i.out, item_run_content.Str(), cur->request->item.content_type);
|
||||
}
|
||||
@@ -729,7 +733,12 @@ void item_tab_run(Info & i)
|
||||
item_run_content.Clear();
|
||||
InitGenerator(ezc_generator);
|
||||
ezc_generator.SetPattern(*p);
|
||||
ezc_generator.Generate(item_run_content);
|
||||
|
||||
if( config->allow_ezc_out_in_executable_items )
|
||||
ezc_generator.Generate(item_run_content, cur->request->out_streams);
|
||||
else
|
||||
ezc_generator.Generate(item_run_content);
|
||||
|
||||
item_print_content(i.out, item_run_content.Str(), cur->request->item_tab[item_index].content_type);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user