Content deleted Content added
add detection of non-existent pages, some code simplication |
m fix for files and interface messages which do exist but are not stored locally |
||
Line 157:
return nil
end
if title.exists then -- not an article if it does not exist exists = true
elseif title.namespace==8 and mw.message.new(title.text):exists() then
exists = true
elseif title.namespace==6 and title.fileExists then
exists = true
end
if not exists then
if type(arg) == 'string' then
return arg
|