From 4b7c8f538a5e7a8e57f4bdf733dce0e07f7473f9 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 13 Dec 2016 16:31:52 +0200 Subject: [PATCH] site map --- console/SiteMapController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/console/SiteMapController.php b/console/SiteMapController.php index 6731dc3..f9d79f6 100755 --- a/console/SiteMapController.php +++ b/console/SiteMapController.php @@ -27,7 +27,7 @@ public function getAddStatic() { return [ - 'https://extremstyle.ua/ru', + Yii::$app->urlManager->baseUrl.'/ru', ]; } @@ -68,6 +68,7 @@ ->joinWith('taxGroups.lang') ->with('taxGroups.taxOptions.lang') ->where(['!=', 'tax_group.meta_robots', 'noindex,nofollow' ]) + ->where(['tax_group.is_filter'=>true ]) ->all(); } @@ -215,7 +216,7 @@ fclose($this->handle); $this->mainMap .= ''. - 'https://extremstyle.ua/ru/' . $this->fileName . ''. + ''.Yii::$app->urlManager->baseUrl.'/ru/' . $this->fileName . ''. '' . date('Y-m-d') . ''. ''. ''; -- libgit2 0.21.4