Development

Changeset 7992

You must first sign up to be able to contribute.

Changeset 7992

Show
Ignore:
Timestamp:
03/20/08 01:19:18 (1 year ago)
Author:
Carl.Vondrick
Message:

1.1: fixed controller->getPresentationFor() fails when exception is thrown (closes #2926)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/controller/sfController.class.php

    r7792 r7992  
    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); 
     450 
     451      // remove viewName 
     452      if ($viewName) 
     453      { 
     454        sfConfig::set('mod_'.strtolower($module).'_view_class', $currentViewName); 
     455      } 
     456 
     457      throw $e; 
     458    } 
    443459 
    444460    // grab the action entry from this forward 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.