diff --git a/components/com_finder/views/search/view.html.php b/components/com_finder/views/search/view.html.php index c33e2e3689695..5e59683f6cb86 100644 --- a/components/com_finder/views/search/view.html.php +++ b/components/com_finder/views/search/view.html.php @@ -271,16 +271,24 @@ protected function prepareDocument($query) $explained = $this->escape(html_entity_decode(strip_tags($this->explained), ENT_QUOTES, 'UTF-8')); $this->document->setDescription($explained); } + elseif ($this->params->get('menu-meta_description')) + { + $this->document->setDescription($this->params->get('menu-meta_description')); + } // Configure the document meta-keywords. if (!empty($query->highlight)) { $this->document->setMetaData('keywords', implode(', ', $query->highlight)); } + elseif ($this->params->get('menu-meta_keywords')) + { + $this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords')); + } if ($this->params->get('robots')) { - $this->document->setMetaData('robots', $this->params->get('robots')); + $this->document->setMetadata('robots', $this->params->get('robots')); } // Add feed link to the document head.