[ticket/12657] Remove unused global variables

PHPBB3-12657