From 63e7825d68c27e717826b764cd43ef924c02cb0d Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 8 Jul 2016 16:38:43 +0300 Subject: [PATCH] 29.06.16 --- frontend/widgets/Seo.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/widgets/Seo.php b/frontend/widgets/Seo.php index 71791c7..ddc8121 100755 --- a/frontend/widgets/Seo.php +++ b/frontend/widgets/Seo.php @@ -110,7 +110,15 @@ class Seo extends Widget } else if (isset($filter['options']["naznacenie"]) && count($filter['options']["naznacenie"]) == 1) { $model = TaxOption::find()->where(['alias' => $filter['options']["naznacenie"]])->one(); - return $this->selectSeoData(self::H1).' '.$model->value->value; + if($this->selectSeoData(self::H1) == $this->category_name) { + + return $this->selectSeoData(self::H1) . ' ' . $model->value->value; + }else { + + return $this->selectSeoData(self::H1); + + } + } else { -- libgit2 0.21.4