Module:Changelog: Difference between revisions

Sur (talk | contribs)
m use new lines instead of <br> to separate changelog lines
Removed very expensive page query logic
Line 33: Line 33:
local function write_changelog_lines(id, config, tag_to_filter)  
local function write_changelog_lines(id, config, tag_to_filter)  
-- Get the data for the respective line
-- Get the data for the respective line
local page_name = id_to_changelog_data_page(id)
local changelog_data = mw.loadJsonData('Data:'..'Changelog_'..id..'.json')
local title = mw.title.new(page_name)
if not (title and title.exists) then
return ""
end
local changelog_data = mw.loadJsonData(page_name)
local lines = ""
local lines = ""