luci-0.9: merge r5165
This commit is contained in:
parent
32577be4b9
commit
398e0aa0a8
1 changed files with 2 additions and 0 deletions
|
@ -49,8 +49,10 @@ getmetatable("").__mod = function(a, b)
|
|||
if not b then
|
||||
return a
|
||||
elseif type(b) == "table" then
|
||||
for k, _ in pairs(b) do if type(b[k]) == "userdata" then b[k] = tostring(b[k]) end end
|
||||
return a:format(unpack(b))
|
||||
else
|
||||
if type(b) == "userdata" then b = tostring(b) end
|
||||
return a:format(b)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue