Commit 8a41134ef149fc147fa7f73517885603a1b664d4
1 parent
be0f814f
sitemap controller not like noindex
Showing
1 changed file
with
2 additions
and
2 deletions
 
Show diff stats
console/controllers/SiteMapController.php
| @@ -46,7 +46,7 @@ class SiteMapController extends Controller | @@ -46,7 +46,7 @@ class SiteMapController extends Controller | ||
| 46 | 46 | ||
| 47 | public function getCategories() { | 47 | public function getCategories() { | 
| 48 | 48 | ||
| 49 | - return Category::find()->andWhere(['not like', 'meta_robots', ''])->all(); | 49 | + return Category::find()->andWhere(['not like', 'meta_robots', 'noindex'])->all(); | 
| 50 | 50 | ||
| 51 | } | 51 | } | 
| 52 | 52 | ||
| @@ -70,7 +70,7 @@ class SiteMapController extends Controller | @@ -70,7 +70,7 @@ class SiteMapController extends Controller | ||
| 70 | 70 | ||
| 71 | public function getSeoLinks() { | 71 | public function getSeoLinks() { | 
| 72 | 72 | ||
| 73 | - return Seo::find()->where(['not like', 'meta', ''])->all(); | 73 | + return Seo::find()->where(['not like', 'meta', 'noindex'])->all(); | 
| 74 | 74 | ||
| 75 | } | 75 | } | 
| 76 | 76 | 
