[ticket/12507] Move the 'require' statement

PHPBB3-12507