setmetatable for groups was not a very good idea

master
Ilya Zhuravlev 2013-04-25 00:05:42 +04:00
parent 0b6c3ec281
commit 7fb0f73779
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ function realtest.register_liquid(name, LiquidDef)
local empty_name = bucket_name(name)
local groups = {["bucket_with_"..LiquidDef.name]=1}
if LiquidDef.bucket_groups then
setmetatable(groups, {__index = LiquidDef.bucket_groups})
for k, v in pairs(LiquidDef.bucket_groups) do
groups[k] = v
end
end
local stack = 1
if LiquidDef.bucket_stack then