Skip to content

Commit

Permalink
Use title from menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ authored Apr 30, 2018
1 parent 9c0aa77 commit d7056b4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions components/com_search/views/search/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,7 @@ public function display($tpl = null)
$searchWord = $state->get('keyword');
$params = $app->getParams();

$menus = $app->getMenu();
$menu = $menus->getActive();

// Because the application sets a default page title, we need to get it right from the menu item itself
if (is_object($menu))
{
if (!$menu->params->get('page_title'))
{
$params->set('page_title', JText::_('COM_SEARCH_SEARCH'));
}
}
else
if (!$app->getMenu()->getActive())
{
$params->set('page_title', JText::_('COM_SEARCH_SEARCH'));
}
Expand Down

0 comments on commit d7056b4

Please sign in to comment.