fixup for category-links in achievements-listview if its a statistic

This commit is contained in:
Sarjuuk
2013-03-13 21:20:27 +01:00
parent 881e5143d1
commit 06ed69c6a1
3 changed files with 8 additions and 2 deletions

View File

@@ -93,6 +93,10 @@ class AchievementList extends BaseType
'parentCat' => $this->curTpl['parentCat'],
);
// going out on a limb here: type = 1 if in level 3 of statistics tree, so, IF (statistic AND parentCat NOT statistic (1)) i guess
if ($this->curTpl['flags'] & ACHIEVEMENT_FLAG_COUNTER && $this->curTpl['parentCat'] != 1)
$data[$this->id]['type'] = 1;
if (!empty($this->curTpl['rewards']))
{
$rewards = [];