added config option for display_errors. fixed response::error to use dot syntax.
This commit is contained in:
@@ -57,7 +57,7 @@ register_shutdown_function(function()
|
||||
*/
|
||||
error_reporting(-1);
|
||||
|
||||
ini_set('display_errors', 'Off');
|
||||
ini_set('display_errors', Config::get('error.display'));
|
||||
|
||||
/**
|
||||
* Even though "Magic Quotes" are deprecated in PHP 5.3, they may
|
||||
|
||||
@@ -157,7 +157,7 @@ class Response {
|
||||
*/
|
||||
public static function error($code, $data = array())
|
||||
{
|
||||
return new static(View::make('error/'.$code, $data), $code);
|
||||
return new static(View::make('error.'.$code, $data), $code);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user