Fix fatal error

Fix a function with the wrong case causing a fatal error. See
https://www.mediawiki.org/wiki/Extension_talk:InteractiveTimeline