Commit d6957eed0e268f78b0078d5a92277b01dfda13ce
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,6 +65,7 @@ | ||
| 65 | { | 65 | { |
| 66 | return Category::find() | 66 | return Category::find() |
| 67 | ->with('lang') | 67 | ->with('lang') |
| 68 | + ->where(['!=', 'parent_id', 0 ]) | ||
| 68 | ->all(); | 69 | ->all(); |
| 69 | } | 70 | } |
| 70 | 71 | ||
| @@ -74,8 +75,10 @@ | @@ -74,8 +75,10 @@ | ||
| 74 | ->with('lang') | 75 | ->with('lang') |
| 75 | ->joinWith('taxGroups.lang') | 76 | ->joinWith('taxGroups.lang') |
| 76 | ->with('taxGroups.taxOptions.lang') | 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 | ->all(); | 82 | ->all(); |
| 80 | } | 83 | } |
| 81 | 84 |