fixed url in wiki.lua
This commit is contained in:
parent
42af2212d0
commit
48c90b3717
@ -101,8 +101,9 @@ function Wikipedia:wikintro(text, lang)
|
|||||||
|
|
||||||
if page and page.extract then
|
if page and page.extract then
|
||||||
local lang = lang or "de"
|
local lang = lang or "de"
|
||||||
local title_enc = URL.escape(page.title)
|
local title = page.title
|
||||||
return text..":\n"..page.extract.."\n -- https://"..lang..".wikipedia.org/wiki/"..title_enc
|
local title_enc = URL.escape(title)
|
||||||
|
return title..":\n"..page.extract.."\n -- https://"..lang..".wikipedia.org/wiki/"..title_enc
|
||||||
else
|
else
|
||||||
local text = '"'..text..'" nicht gefunden.'
|
local text = '"'..text..'" nicht gefunden.'
|
||||||
return text
|
return text
|
||||||
|
Reference in New Issue
Block a user