Changeset 6513
- Timestamp:
- 12/15/07 20:25:55 (7 months ago)
- Files:
-
- trunk/lib/exception/sfException.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/exception/sfException.class.php
r5291 r6513 80 80 protected function outputStackTrace() 81 81 { 82 $exception = is_null($this->wrappedException) ? $this : $this->wrappedException; 83 82 84 if (class_exists('sfContext', false) && sfContext::hasInstance()) 83 85 { … … 89 91 } 90 92 91 $event = $dispatcher->notifyUntil(new sfEvent($this, 'application.throw_exception', array('exception' => $ this)));93 $event = $dispatcher->notifyUntil(new sfEvent($this, 'application.throw_exception', array('exception' => $exception))); 92 94 if ($event->isProcessed()) 93 95 { … … 109 111 $name = get_class($this); 110 112 $format = 0 == strncasecmp(PHP_SAPI, 'cli', 3) ? 'plain' : 'html'; 111 $traces = self::getTraces( is_null($this->wrappedException) ? $this : $this->wrappedException, $format);113 $traces = self::getTraces($exception, $format); 112 114 113 115 // dump main objects values