Commit 63e7825d68c27e717826b764cd43ef924c02cb0d
1 parent
4b4be5ea
29.06.16
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
frontend/widgets/Seo.php
| @@ -110,7 +110,15 @@ class Seo extends Widget | @@ -110,7 +110,15 @@ class Seo extends Widget | ||
| 110 | } else if (isset($filter['options']["naznacenie"]) && count($filter['options']["naznacenie"]) == 1) { | 110 | } else if (isset($filter['options']["naznacenie"]) && count($filter['options']["naznacenie"]) == 1) { |
| 111 | 111 | ||
| 112 | $model = TaxOption::find()->where(['alias' => $filter['options']["naznacenie"]])->one(); | 112 | $model = TaxOption::find()->where(['alias' => $filter['options']["naznacenie"]])->one(); |
| 113 | - return $this->selectSeoData(self::H1).' '.$model->value->value; | 113 | + if($this->selectSeoData(self::H1) == $this->category_name) { |
| 114 | + | ||
| 115 | + return $this->selectSeoData(self::H1) . ' ' . $model->value->value; | ||
| 116 | + }else { | ||
| 117 | + | ||
| 118 | + return $this->selectSeoData(self::H1); | ||
| 119 | + | ||
| 120 | + } | ||
| 121 | + | ||
| 114 | 122 | ||
| 115 | 123 | ||
| 116 | } else { | 124 | } else { |