Module:Category handler: Difference between revisions

Content added Content deleted
(fix default parameter main namespace bug)
(fix blacklist-checking bug)
Line 195: Line 195:
local ret = '' -- The string to return.
local ret = '' -- The string to return.
-- Check blacklist if necessary.
if needsBlacklistCheck( args ) and not findBlacklistMatch( pageObject ) then
if not needsBlacklistCheck( args )
or not findBlacklistMatch( pageObject ) then
if not nsParamsExist( mappings, args ) then
if not nsParamsExist( mappings, args ) then
-- No namespace parameters exist; basic usage. Pass args[1] to
-- No namespace parameters exist; basic usage. Pass args[1] to
Line 229: Line 232:
ndargs.page = args.page
ndargs.page = args.page
end
end
local data = NamespaceDetect.main( ndargs )
local data = NamespaceDetect.main( ndargs )