Module:Changelog: Difference between revisions
m get_last_updated now returns latest id instead of date; fixed bug with loading non-existing json page during testing phase |
m write_changelog_by_date_id() warning added if date_id isnt found; used actual forum link |
||
Line 140: | Line 140: | ||
previous_id = id -- only update previous if the_id isnt found | previous_id = id -- only update previous if the_id isnt found | ||
end | end | ||
end | |||
if not id_found then | |||
return "date_id " .. date_id_to_write .. " not found" | |||
end | end | ||
local config = changelog_configs[the_id] | |||
local template_title = 'Update layout' | local template_title = 'Update layout' | ||
local template_args = { | local template_args = { | ||
Line 147: | Line 151: | ||
['current_update'] = the_id, | ['current_update'] = the_id, | ||
['next_update'] = next_id, | ['next_update'] = next_id, | ||
['source'] = | ['source'] = config[link], | ||
['source_title'] = the_id .. ' Update', | ['source_title'] = the_id .. ' Update', | ||
['notes'] = write_changelog_lines(the_id, | ['notes'] = write_changelog_lines(the_id, config, 'All') | ||
} | } | ||