Impact: The view edits history subtitle shows undefined for any page updated 2 or more days ago.
Steps to Reproduce:
- Open any English mobile-html page in dev environment, e.g. http://localhost:8888/en.wikipedia.org/v1/page/mobile-html/Cat
- In the browser DevTools JavaScript console add a Footer with editedDaysAgo specified
pcs.c1.Footer.add({ title: 'Cat', menu: { items: [pcs.c1.Footer.MenuItemType.lastEdited], fragment: "pcs-menu", editedDaysAgo: 3 }, readMore: {} })
- Observe the string in the subtitle under "View edit history"
Actual Results:
"undefined"
Expected Results:
"Updated 3 days ago"