From 8fd6962fa61b5e45972048e1edd3240169e75cb1 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 15 Dec 2016 17:03:47 +0200 Subject: [PATCH] sitemap controller fix noindex --- console/controllers/SiteMapController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/console/controllers/SiteMapController.php b/console/controllers/SiteMapController.php index 962aebb..599b8d5 100644 --- a/console/controllers/SiteMapController.php +++ b/console/controllers/SiteMapController.php @@ -172,14 +172,14 @@ class SiteMapController extends Controller } //brands -// foreach($this->getCategories() as $category) { -// foreach ($this->getBrands($category) as $brand) { -// if($this->checkFilter($category, ['brands' => [$brand->brand_id]])){ -// $url = Url::to(['catalog/category', 'category' => $category, 'filters' => ['brands' => [$brand->alias]]]) ; -// $this->createRow($url , 0.8, $content); -// } -// } -// } + foreach($this->getCategories() as $category) { + foreach ($this->getBrands($category) as $brand) { + if($this->checkFilter($category, ['brands' => [$brand->brand_id]])){ + $url = Url::to(['catalog/category', 'category' => $category, 'filters' => ['brands' => [$brand->alias]]]) ; + $this->createRow($url , 0.8, $content); + } + } + } // // //filters 1 lvl // foreach($this->getCategories() as $category) { -- libgit2 0.21.4