libs/core: Renamed luci.util.create_dtable => luci.util.dtable

This commit is contained in:
Steven Barth 2008-07-28 14:17:30 +00:00
parent 84ad4e3e21
commit db4447af91

View file

@ -378,11 +378,11 @@ end
--- Create a dynamic table which automatically creates subtables. --- Create a dynamic table which automatically creates subtables.
-- @return Dynamic Table -- @return Dynamic Table
function create_dtable() function dtable()
return setmetatable({}, { __index = return setmetatable({}, { __index =
function(tbl, key) function(tbl, key)
return rawget(tbl, key) return rawget(tbl, key)
or rawget(rawset(tbl, key, create_dtable()), key) or rawget(rawset(tbl, key, dtable()), key)
end end
}) })
end end