Module:Section link: Difference between revisions

m
need to check that page exists before finding substrings
m>Mr. Stradivarius
(more elegant fix for blank page names)
m>Mr. Stradivarius
m (need to check that page exists before finding substrings)
Line 30: Line 30:


-- Deal with blank page names elegantly
-- Deal with blank page names elegantly
if not page:find('%S') then
if page and not page:find('%S') then
page = nil
page = nil
options.nopage = true
options.nopage = true
Anonymous user