Development

#2926: controller11.php.patch

You must first sign up to be able to contribute.

Ticket #2926: controller11.php.patch

File controller11.php.patch, 0.9 kB (added by Carl.Vondrick, 10 months ago)

patch for 1.1

  • lib/controller/sfController.class.php

    old new  
    438438      sfConfig::set('mod_'.strtolower($module).'_view_class', $viewName); 
    439439    } 
    440440 
    441     // forward to the mail action 
    442     $this->forward($module, $action); 
     441    try 
     442    { 
     443      // forward to the mail action 
     444      $this->forward($module, $action); 
     445    } 
     446    catch (Exception $e) 
     447    { 
     448      // put render mode back 
     449      $this->setRenderMode($renderMode); 
    443450 
     451      // remove viewName 
     452      if ($viewName) 
     453      { 
     454        sfConfig::set('mod_'.strtolower($module).'_view_class', $currentViewName); 
     455      } 
     456 
     457      throw $e; 
     458    } 
     459 
    444460    // grab the action entry from this forward 
    445461    $actionEntry = $actionStack->getEntry($index); 
    446462