diff options
author | Steven Barth <steven@midlink.org> | 2008-09-05 12:05:06 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-05 12:05:06 +0000 |
commit | 9cae9dabf2b3e6251fdb3a9db37d868d1b0c575c (patch) | |
tree | 5c8463b4d0db48ce55294d31340f61292810d7cb /libs/uci/luasrc/model | |
parent | f62839fde97c1d59d22d4e3b8eee6bc85f2f2c0b (diff) |
Fixed luci.uci.Cursor.delete_all
Diffstat (limited to 'libs/uci/luasrc/model')
-rw-r--r-- | libs/uci/luasrc/model/uci.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/uci/luasrc/model/uci.lua b/libs/uci/luasrc/model/uci.lua index 8da73fe61..659cd6254 100644 --- a/libs/uci/luasrc/model/uci.lua +++ b/libs/uci/luasrc/model/uci.lua @@ -31,7 +31,7 @@ local table = require "table" local setmetatable, rawget, rawset = setmetatable, rawget, rawset local error, pairs, ipairs, tostring = error, pairs, ipairs, tostring -local require, getmetatable = require, getmetatable +local require, getmetatable, type = require, getmetatable, type --- LuCI UCI model library. -- @cstyle instance @@ -67,7 +67,7 @@ end -- @param type UCI section type -- @param comparator Function that will be called for each section and -- returns a boolean whether to delete the current section (optional) -function Cursor.delete_all(self, config, type, comparator) +function Cursor.delete_all(self, config, stype, comparator) local del = {} if type(comparator) == "table" then @@ -89,7 +89,7 @@ function Cursor.delete_all(self, config, type, comparator) end end - self:foreach(config, type, helper) + self:foreach(config, stype, helper) for i, j in ipairs(del) do self:delete(config, j) |