Index: trunk/core/units/users/users_event_handler.php =================================================================== diff -u -N -r3344 -r3484 --- trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 3344) +++ trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 3484) @@ -15,9 +15,9 @@ { $http_query =& $this->Application->recallObject('HTTPQuery'); $get = $http_query->getRedirectParams(); - + $t = $this->Application->GetVar('t'); - $get['js_redirect'] = 1; + $get['js_redirect'] = $this->Application->ConfigValue('UseJSRedirect'); $this->Application->Redirect($t ? $t : 'index', $get); } } @@ -78,7 +78,9 @@ $next_template = $this->Application->GetVar('next_template'); if($next_template) $event->redirect = $next_template; - $event->SetRedirectParam('js_redirect', 1); + if ($this->Application->ConfigValue('UseJSRedirect')) { + $event->SetRedirectParam('js_redirect', 1); + } } else { @@ -117,7 +119,9 @@ $session->SetField('GroupList', $group_list); $this->Application->StoreVar('UserGroups', $group_list); - $event->SetRedirectParam('js_redirect', 1); + if ($this->Application->ConfigValue('UseJSRedirect')) { + $event->SetRedirectParam('js_redirect', 1); + } } /**