public function apply() { $result = $this->doSave(); $layout = Jstring::strtolower(JRequest::getString('active', '')); $child = Jstring::strtolower(JRequest::getString('activechild', '')); $component = JRequest::getString('target', ''); $mainframe = JFactory::getApplication(); $mainframe->redirect('index.php?option=com_komento&view=integrations&component=' . $component . '&active=' . $layout, $result['message'], $result['type']); }
public function apply() { $this->doSave(); $layout = Jstring::strtolower(JRequest::getString('active', '')); $child = Jstring::strtolower(JRequest::getString('activechild', '')); $advance = JRequest::getInt('advance', ''); $redirect = 'index.php?option=com_komento&view=system&active=' . $layout . '&activechild=' . $child; if ($advance) { $redirect .= '&advance=' . $advance; } $mainframe = JFactory::getApplication(); $mainframe->redirect($redirect); }