[ticket/11831] getAttribute was replaced with attr

PHPBB3-11831