From 9f58e70286c5c8156ef38cee491e71510f2a56dc Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 16 Dec 2016 14:44:20 +0200 Subject: [PATCH] sitemap controller not like noindex --- console/controllers/SiteMapController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/controllers/SiteMapController.php b/console/controllers/SiteMapController.php index 0f6d26f..c39de22 100644 --- a/console/controllers/SiteMapController.php +++ b/console/controllers/SiteMapController.php @@ -46,7 +46,7 @@ class SiteMapController extends Controller public function getCategories() { - return Category::find()->andWhere(['meta_robots' => ''])->all(); + return Category::find()->andWhere(['not like', 'meta_robots', 'noindex'])->all(); } @@ -70,7 +70,7 @@ class SiteMapController extends Controller public function getSeoLinks() { - return Seo::find()->where(['meta' => ''])->all(); + return Seo::find()->where(['not like', 'meta_robots', 'noindex'])->all(); } -- libgit2 0.21.4