We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a79b08b commit a378490Copy full SHA for a378490
src/Providers/Html.php
@@ -69,21 +69,9 @@ public function getType()
69
*/
70
public function getTags()
71
{
72
- if (!$this->bag->has('keywords')) {
73
- return [];
74
- }
75
-
76
- $keywords = $this->bag->get('keywords');
77
78
- //some sites, contains the keywords separated by commas
79
- if (strpos($keywords, ',')) {
80
- $keywords = explode(',', $keywords);
81
- //and others by spaces (ex: youtube)
82
- } else {
83
- $keywords = explode(' ', $keywords);
84
+ $keywords = $this->bag->get('keywords').','.$this->bag->get('news_keywords');
85
86
- return array_filter(array_map('trim', $keywords));
+ return array_filter(array_map('trim', explode(',', $keywords)));
87
}
88
89
/**
0 commit comments