[ticket/8319] Do not repeat the replacement

PHPBB3-8319