Jump to content

Topic on Extension talk:ChapTimeline

Patch for compatibility

1
Smith.dan (talkcontribs)

In recent versions of MediaWiki (1.29, 1.31), I've found it necessary to patch ChapTimeline.class.php as follows:

$wgOut->getTitle()

gets replaced with

$wgOut->getTitle() ?: Title::newMainPage()

in two places.

Before doing so, no timeline was displayed, and some maintenance scripts crashed. Afterwards, it seems to behave properly.

Reply to "Patch for compatibility"