Module:Article history/config and Module:Article history/config/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Pppery
Update featured portal wording per request
 
imported>Cscott
more logging
 
Line 46: Line 46:
-- invalid input errors.
-- invalid input errors.
local function getDate(format, date)
local function getDate(format, date)
mw.log("formatDate")
mw.log(format)
mw.logObject(date)
if date == nil then
mw.log(debug.traceback())
end
local success, result = pcall(lang.formatDate, lang, format, date)
local success, result = pcall(lang.formatDate, lang, format, date)
if success then
if success then