[ticket/11824] Remove unused globals

PHPBB3-11824