Content deleted Content added
Fred Gandt (talk | contribs) if !nil |
Fred Gandt (talk | contribs) check for nil vals |
||
Line 39:
end
-- Otherwise, add the page name to our table
else
pages[#pages + 1] = value
end
Line 48:
-- get the raw markup
haystack = mw.title.new(page)
if haystack then
-- count the sections and add to the total
total = total + count(haystack:getContent(), needles)
end
index = index + 1
page = pages[index]
|