Changes

Jump to: navigation, search

Module:Message box

3 bytes added, 23:56, 27 September 2013
fix bug where the arguments where all getting removed if cfg.allowBlankParams wasn't present
local newArgs = {}
for k, v in pairs(args) do
for i, param in ipairs(cfg.allowBlankParams or {}) do if v ~= '' or k == param then newArgs[k] = v end
end
end
for i, param in ipairs(cfg.allowBlankParams or {}) do
newArgs[param] = args[param]
end
return newArgs
Anonymous user

Navigation menu