Improved exception handling and other minor fixes
This commit is contained in:
@@ -9,17 +9,7 @@
|
||||
* @copyright (c) 2009-2013 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {
|
||||
public function get_response() {
|
||||
$response = Response::factory();
|
||||
$response->status($this->_code);
|
||||
|
||||
$view = View::factory('errors/404');
|
||||
$view->message = $this->getMessage();
|
||||
|
||||
$response->body($view->render());
|
||||
|
||||
return $response;
|
||||
}
|
||||
class HTTP_Exception_404 extends HTTP_Exception {
|
||||
protected $_code = 404;
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user