Changeset 879
- Timestamp:
- 08/22/07 22:51:13 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/util/stubExceptionHandler.php
r473 r879 31 31 */ 32 32 protected static $response; 33 33 34 34 /** 35 35 * registers the exception handler … … 50 50 self::$request->cancel(); 51 51 } 52 52 53 53 if (null == self::$response) { 54 54 self::$response = new stubBaseResponse(); 55 55 } 56 56 57 57 if (stubRegistry::hasConfig('net.stubbles.mode') == true && stubRegistry::getConfig('net.stubbles.mode') == 'test') { 58 58 if ($exception instanceof stubException) { … … 65 65 self::$response->replaceData(file_get_contents(stubConfig::getConfigPath() . '/errors/500.html')); 66 66 } 67 68 // send the response because the request will end right after this 67 68 // send the response because the request will end right after this 69 69 // method has been finished 70 70 self::$response->send(); … … 80 80 public function preProcess(stubRequest $request, stubSession $session, stubResponse $response) 81 81 { 82 self::register( $request, $response);82 self::register(); 83 83 self::$request = $request; 84 84 self::$response = $response;
