[ticket/12347] Changed from :after to :before

PHPBB3-12347