check block arguments e.g. [1] at the beginning - before all other lookups
This commit is contained in:
parent
b956f1c401
commit
b0afdf7f0f
|
@ -1110,6 +1110,9 @@ bool Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::FindInVar
|
|||
template<class StreamType, bool is_pikotools_stream, bool is_autoescape_stream>
|
||||
bool Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::Find(Item::Function & item_fun, FindHelper & find_helper)
|
||||
{
|
||||
if( CheckBlockArgument(item_fun.arg, find_helper) )
|
||||
return true;
|
||||
|
||||
#ifdef EZC_HAS_MORM_LIBRARY
|
||||
if( FindInModels(find_helper) )
|
||||
return true;
|
||||
|
@ -1122,9 +1125,6 @@ bool Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::Find(Item
|
|||
|
||||
#endif
|
||||
|
||||
if( CheckBlockArgument(item_fun.arg, find_helper) )
|
||||
return true;
|
||||
|
||||
if( FindInCache(item_fun, find_helper) )
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue