getParams();
$menus = &JSite::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 )) {
$menu_params = new JParameter( $menu->params );
if (!$menu_params->get( 'page_title')) {
$params->set('page_title', JText::_( 'FORGOT_YOUR_USERNAME' ));
}
} else {
$params->set('page_title', JText::_( 'FORGOT_YOUR_USERNAME' ));
}
$document = &JFactory::getDocument();
$document->setTitle( $params->get( 'page_title' ) );
// Load the form validation behavior
JHTML::_('behavior.formvalidation');
// Add the tooltip behavior
JHTML::_('behavior.tooltip');
$this->assignRef('params', $params);
parent::display($tpl);
}
}