libs/core: Renamed luci.util.create_dtable => luci.util.dtable
[project/luci.git] / libs / core / luasrc / util.lua
index 22f295d..bcd4ed1 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