libs/core: Renamed luci.util.create_dtable => luci.util.dtable
authorSteven Barth <steven@midlink.org>
Mon, 28 Jul 2008 14:17:30 +0000 (14:17 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 28 Jul 2008 14:17:30 +0000 (14:17 +0000)
libs/core/luasrc/util.lua

index 22f295d23f4613dbd5803fa9f3a7f24cb1bad1f1..bcd4ed1e059183ce156f4f30b0744f7970c1523f 100644 (file)
@@ -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