[ticket/13070] Use old 'template' class for template class hook

Ticket: https://tracker.phpbb.com/browse/PHPBB3-13070