Browse Source

require_once on error class.

Taylor Otwell 12 years ago
parent
commit
9dea22c3eb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      laravel/laravel.php

+ 3 - 3
laravel/laravel.php

@@ -27,7 +27,7 @@ require 'core.php';
 
 set_exception_handler(function($e)
 {
-	require path('sys').'error'.EXT;
+	require_once path('sys').'error'.EXT;
 
 	Error::exception($e);
 });
@@ -35,7 +35,7 @@ set_exception_handler(function($e)
 
 set_error_handler(function($code, $error, $file, $line)
 {
-	require path('sys').'error'.EXT;
+	require_once path('sys').'error'.EXT;
 
 	Error::native($code, $error, $file, $line);
 });
@@ -43,7 +43,7 @@ set_error_handler(function($code, $error, $file, $line)
 
 register_shutdown_function(function()
 {
-	require path('sys').'error'.EXT;
+	require_once path('sys').'error'.EXT;
 
 	Error::shutdown();
 });