summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-28 14:17:30 +0000
committerSteven Barth <steven@midlink.org>2008-07-28 14:17:30 +0000
commitdb4447af91e06cbe875fc656a65756751a1549e5 (patch)
treec81518247a81f427dd58bf4e9ad962af606b6609 /libs
parent84ad4e3e21b53c84cb6d1dc6f6dbae97e24f9d94 (diff)
libs/core: Renamed luci.util.create_dtable => luci.util.dtable
Diffstat (limited to 'libs')
-rw-r--r--libs/core/luasrc/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua
index 22f295d23f..bcd4ed1e05 100644
--- a/libs/core/luasrc/util.lua
+++ b/libs/core/luasrc/util.lua
@@ -378,11 +378,11 @@ end
--- Create a dynamic table which automatically creates subtables.
-- @return Dynamic Table
-function create_dtable()
+function dtable()
return setmetatable({}, { __index =
function(tbl, key)
return rawget(tbl, key)
- or rawget(rawset(tbl, key, create_dtable()), key)
+ or rawget(rawset(tbl, key, dtable()), key)
end
})
end