Commit d6957eed0e268f78b0078d5a92277b01dfda13ce

Authored by Administrator
1 parent d5c87d48

site map

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
console/SiteMapController.php
... ... @@ -65,6 +65,7 @@
65 65 {
66 66 return Category::find()
67 67 ->with('lang')
  68 + ->where(['!=', 'parent_id', 0 ])
68 69 ->all();
69 70 }
70 71  
... ... @@ -74,8 +75,10 @@
74 75 ->with('lang')
75 76 ->joinWith('taxGroups.lang')
76 77 ->with('taxGroups.taxOptions.lang')
77   - ->where(['!=', 'tax_group.meta_robots', 'noindex,nofollow' ])
78   - ->where(['tax_group.is_filter'=>true ])
  78 + ->where(['!=', 'parent_id', 0 ])
  79 + ->andWhere(['!=', 'tax_group.meta_robots', 'noindex,nofollow' ])
  80 + ->andWhere(['!=', 'tax_group.meta_robots', 'noindex, nofollow' ])
  81 + ->andWhere(['tax_group.is_filter'=>true ])
79 82 ->all();
80 83 }
81 84  
... ...