Esempio n. 1
0
 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']);
 }
Esempio n. 2
0
 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);
 }