[RSS Feed/News] Trophies that don't meet the criteria anymore don't get deleted by the trophy rebuild job

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Is this deliberate?

src/XF/Repository/Trophy.php:63
PHP:

Code:
        foreach ($trophies AS $trophy)
        {
            if (isset($userTrophies[$user->user_id . '-' . $trophy->trophy_id]))
            {
                continue; //But the criteria is met?
            }

            $userCriteria = $this->app()->criteria('XF:User', $trophy->user_criteria);
            $userCriteria->setMatchOnEmpty(false);
            if ($userCriteria->isMatched($user))
            {...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom