Module:Article history/config: Difference between revisions

Content deleted Content added
fix backwards logic in maindate isActive
fix scoping error in the maindate makeData function
Line 644:
makeData = function (articleHistoryObj)
local args = articleHistoryObj.args
local status = articleHistoryObj:getStatusId()
local data = {}
data.mainDate = args.maindate
 
if not data.mainDate then
local status = articleHistoryObj:getStatusId()
if status == 'FA' then
data.categoryOnly = 'Featured articles that have not appeared on the main page'