getLayout(); if ($layout == 'complete') { $id = $mainframe->getUserState($this->_namespace.'id'); $token = $mainframe->getUserState($this->_namespace.'token'); if (is_null($id) || is_null($token)) { $mainframe->redirect('index.php?option=com_user&view=reset'); } } // Get the page/component configuration $params = &$mainframe->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_PASSWORD' )); } } else { $params->set('page_title', JText::_( 'FORGOT_YOUR_PASSWORD' )); } $document = &JFactory::getDocument(); $document->setTitle( $params->get( 'page_title' ) ); $this->assignRef('params', $params); parent::display($tpl); } }