Development

Changeset 6513

You must first sign up to be able to contribute.

Changeset 6513

Show
Ignore:
Timestamp:
12/15/07 20:25:55 (7 months ago)
Author:
fabien
Message:

fixed sfException event

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/exception/sfException.class.php

    r5291 r6513  
    8080  protected function outputStackTrace() 
    8181  { 
     82    $exception = is_null($this->wrappedException) ? $this : $this->wrappedException; 
     83 
    8284    if (class_exists('sfContext', false) && sfContext::hasInstance()) 
    8385    { 
     
    8991      } 
    9092 
    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))); 
    9294      if ($event->isProcessed()) 
    9395      { 
     
    109111    $name    = get_class($this); 
    110112    $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); 
    112114 
    113115    // dump main objects values