fixed url in wiki.lua

This commit is contained in:
Akamaru 2015-06-19 22:44:57 +02:00
parent 42af2212d0
commit 48c90b3717

View File

@ -101,8 +101,9 @@ function Wikipedia:wikintro(text, lang)
if page and page.extract then
local lang = lang or "de"
local title_enc = URL.escape(page.title)
return text..":\n"..page.extract.."\n -- https://"..lang..".wikipedia.org/wiki/"..title_enc
local title = page.title
local title_enc = URL.escape(title)
return title..":\n"..page.extract.."\n -- https://"..lang..".wikipedia.org/wiki/"..title_enc
else
local text = '"'..text..'" nicht gefunden.'
return text