Example #1
0
 /**
  * Saves return URL - the back point to redirect to after several actions like add new object etc
  *
  */
 public static function ReturnPoint()
 {
     if (!isset($_POST['option']) || $_POST['option'] != 'com_sobipro' || isset($_GET['hidemainmenu']) && isset($_POST['hidemainmenu'])) {
         Sobi::SetUserState('back_url', Sobi::Url('current'));
     } else {
         $current = 'index.php?';
         foreach ($_POST as $k => $v) {
             $current .= $k . '=' . (string) $v . '&';
         }
         Sobi::SetUserState('back_url', $current);
     }
 }