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

Painbaker

Well-known member
Affected version
2.2.2
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]);
    }
 
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]);
    }
 
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.
 
Back
Top Bottom