Module:Redirect: Difference between revisions

see which
(hmmm, that broke something, bad filename not rejected?)
(see which)
Line 9: Line 9:
   local rname=args[1] or pargs[1] or ""
   local rname=args[1] or pargs[1] or ""
   if redirect then
   if redirect then
       if mw.ustring.gsub(redirect,"%s","") == "" then return "" end
       if mw.ustring.gsub(redirect,"%s","") == "" then return "x" end
       else return "" end
       else return "" end
   local rpage=mw.title.new(rname)
   local rpage=mw.title.new(rname)
Anonymous user