Index: application.php =================================================================== --- application.php (revision 12950) +++ application.php (working copy) @@ -1924,6 +1924,15 @@ unset($params['js_redirect']); } + // allows to send custom responce code along with redirect header + if (array_key_exists('response_code', $params)) { + $response_code = (int)$params['response_code']; + unset($params['response_code']); + } + else { + $responce_code = 302; // Found + } + if (!array_key_exists('pass', $params)) { $params['pass'] = 'all'; } @@ -1963,7 +1972,7 @@ // no output before -> redirect using HTTP header // header('HTTP/1.1 302 Found'); - header("$location"); + header("$location", true, $response_code); } } }