mirror of
https://github.com/minetest/minetest.git
synced 2024-12-22 22:22:23 +01:00
Content browser: Fix broken forum URLs
Repeated prepending would break these URLs. This fix uses the freshly added `forum_url` field directly.
This commit is contained in:
parent
294a30e445
commit
db04964697
@ -51,10 +51,6 @@ local function get_formspec(data)
|
||||
return
|
||||
end
|
||||
|
||||
if info.forums then
|
||||
info.forums = "https://forum.luanti.org/viewtopic.php?t=" .. info.forums
|
||||
end
|
||||
|
||||
assert(data.package.name == info.name)
|
||||
data.info = info
|
||||
ui.update()
|
||||
@ -194,7 +190,7 @@ local function get_formspec(data)
|
||||
add_link_button(fgettext("Source"), "repo")
|
||||
add_link_button(fgettext("Issue Tracker"), "issue_tracker")
|
||||
add_link_button(fgettext("Translate"), "translation_url")
|
||||
add_link_button(fgettext("Forum Topic"), "forums")
|
||||
add_link_button(fgettext("Forum Topic"), "forum_url")
|
||||
|
||||
hypertext = hypertext .. "\n\n" .. info.long_description.body
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user