Module:Redirect: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
local rname=args[1] or pargs[1] or "" | local rname=args[1] or pargs[1] or "" | ||
if redirect=="" then return "" end | if redirect=="" then return "" end | ||
local rpage=mw.title.new( | local rpage=mw.title.new(rname) | ||
local err="" | local err="" | ||
if rpage then -- avoid possibly expensive FileExists if we don't have anything | if rpage then -- avoid possibly expensive FileExists if we don't have anything |