Commit 9f58e70286c5c8156ef38cee491e71510f2a56dc
1 parent
08cb3deb
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(['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(['meta' => ''])->all(); | 73 | + return Seo::find()->where(['not like', 'meta_robots', 'noindex'])->all(); |
74 | 74 | ||
75 | } | 75 | } |
76 | 76 |