[ticket/12404] Changes append/prepend to after/before

PHPBB3-12404