Development

Changeset 5022

You must first sign up to be able to contribute.

Changeset 5022

Show
Ignore:
Timestamp:
09/09/07 21:14:02 (1 year ago)
Author:
fabien
Message:

small refactoring to the sfExecutionFilter::handleView method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/filter/sfExecutionFilter.class.php

    r4957 r5022  
    189189  protected function handleView($filterChain, $actionInstance, $viewName) 
    190190  { 
    191     if (sfView::HEADER_ONLY == $viewName) 
    192     { 
    193       $this->context->getResponse()->setHeaderOnly(true); 
    194  
    195       return; 
    196     } 
    197  
    198     if (sfView::NONE == $viewName) 
    199     { 
    200       return; 
     191    switch ($viewName) 
     192    { 
     193      case sfView::HEADER_ONLY: 
     194        $this->context->getResponse()->setHeaderOnly(true); 
     195        return; 
     196      case sfView::NONE: 
     197        return; 
    201198    } 
    202199