Commit 4e8c4f53dc72024685228d15c2e7989b482bdf60
1 parent
c1965fd6
-H1 and filter replacements
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
widgets/Seo.php
... | ... | @@ -274,7 +274,7 @@ class Seo extends Widget |
274 | 274 | */ |
275 | 275 | protected function replaceData($str) |
276 | 276 | { |
277 | - | |
277 | + | |
278 | 278 | if (!empty($this->fields)) { |
279 | 279 | foreach ($this->fields as $field_name => $field_value) { |
280 | 280 | $str = str_replace('{' . $field_name . '}', $field_value, $str); |
... | ... | @@ -413,9 +413,11 @@ class Seo extends Widget |
413 | 413 | * @return mixed |
414 | 414 | */ |
415 | 415 | public function getNameString($array, $h1){ |
416 | - | |
417 | 416 | $row = ' '; |
418 | 417 | foreach($array as $name => $field){ |
418 | + if (isset($this->fields['name'])) { | |
419 | + $field['value'] = str_replace($this->fields['name'], '', $field['value']); | |
420 | + } | |
419 | 421 | $row .= $field['value'].' ' ; |
420 | 422 | } |
421 | 423 | ... | ... |