contao 3 compat (thanks to cliffparnitzky)