Module:Redirect: Difference between revisions
Let's make sure it's blank
(Ah. Wrong function!) |
(Let's make sure it's blank) |
||
Line 8: | Line 8: | ||
if parent then pargs = parent.args else pargs={} end | if parent then pargs = parent.args else pargs={} end | ||
local rname=args[1] or pargs[1] or "" | local rname=args[1] or pargs[1] or "" | ||
if redirect=="" then return "" end | if redirect then | ||
if mw.ustring.gsub(redirect,"%s+","") == "" then return "" end | |||
else return "" end | |||
local rpage=mw.title.new(rname) | local rpage=mw.title.new(rname) | ||
local err="" | local err="" |