Fixed Incorrect variable pass to phrase from getContentTitle() method from ProfilePost & ProfilePostComment

Affected version
2.2.2

Painbaker

Well-known member
profile_post_by_x = Profile post by {name}


XF\Entity\ProfilePost:

PHP:
    public function getContentTitle(string $context = '')
    {
        return \XF::phrase('profile_post_by_x', ['username' => $this->username]);
    }
 

Painbaker

Well-known member
Same with Profile post comment

profile_post_comment_by_x = Profile post comment by {username}

XF\Entity\ProfilePostComment:
PHP:
    public function getContentTitle(string $context = '')
    {
        return \XF::phrase('profile_post_comment_by_x', ['title' => $this->username]);
    }
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.3).

Change log:
Fix phrase params with profile post and profile post comment content titles
There may be a delay before changes are rolled out to the XenForo Community.
 
Top