/** * Edit an team * * @param string $key key * @param string $urlVar urlvar * * @return bool */ public function edit($key = null, $urlVar = null) { if (!JFactory::getUser()->get('id')) { $this->setRedirect(JURI::base(), JText::_('COM_TRACKS_Please_login_to_be_able_to_edit'), 'error'); $this->redirect(); } return parent::edit($key, $urlVar); }
/** * Method to install Content Element. * * @return boolean True if successful, false otherwise. */ public function redirectAfterAction() { if ($this->input->get('layout', '') == 'manage' && ($returnUrl = $this->input->get('return'))) { $this->setRedirect(JRoute::_(base64_decode($returnUrl), false)); } else { parent::edit(); } }