Added configuration HTTP STATUS codes

This commit is contained in:
Deon George 2013-04-28 09:30:31 +10:00
parent b900b38740
commit 9b60e759c9

View File

@ -46,7 +46,7 @@ class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {
// Process our redirection options
if (preg_match('/^http[s]?:\/\//',$ro->redirect)) {
$response->status(302);
$response->status($ro->http_status ? $ro->http_status : 302);
$response->headers('Location',$ro->redirect);
} elseif (preg_match('/^file:\/\/(.*)$/',$ro->redirect,$matches) AND file_exists($matches[1])) {