Yucky code to let FOF work with contenthistory

To be partnered with https://github.com/akeeba/fof/pull/315