Merge pull request #18 from blueyed/expose-args-excluded-curr_tag_only

Do not set module settings from function args
This commit is contained in:
Quan Guo 2015-11-12 23:52:28 +01:00
commit 2a6f8dc9fd
1 changed files with 2 additions and 5 deletions

View File

@ -157,11 +157,8 @@ end
function revelation.expose(args)
args = args or {}
local rule = args.rule or {}
local is_excluded = args.is_excluded or false
local curr_tag_only = args.curr_tag_only or false
revelation.is_excluded = is_excluded
revelation.curr_tag_only = curr_tag_only
local is_excluded = args.is_excluded or revelation.is_excluded
local curr_tag_only = args.curr_tag_only or revelation.curr_tag_only
local t={}
local zt={}