Author: fabien
Date: 2010-05-19 14:55:30 +0200 (Wed, 19 May 2010)
New Revision: 29524

Modified:
   branches/1.3/lib/filter/sfRenderingFilter.class.php
   branches/1.4/lib/filter/sfRenderingFilter.class.php
Log:
[1.3, 1.4] fixed sfWebResponse::sendHttpHeaders() call from 
sfController::forward() in sfController::getPresentationFor() prevents later 
call to sendHttpHeaders() within main controller (closes #8568)

Modified: branches/1.3/lib/filter/sfRenderingFilter.class.php
===================================================================
--- branches/1.3/lib/filter/sfRenderingFilter.class.php 2010-05-19 12:50:54 UTC 
(rev 29523)
+++ branches/1.3/lib/filter/sfRenderingFilter.class.php 2010-05-19 12:55:30 UTC 
(rev 29524)
@@ -46,6 +46,9 @@
     }
 
     // send headers + content
-    $response->send();
+    if (sfView::RENDER_VAR != $this->context->getController()->getRenderMode())
+    {
+        $response->send();
+    }
   }
 }

Modified: branches/1.4/lib/filter/sfRenderingFilter.class.php
===================================================================
--- branches/1.4/lib/filter/sfRenderingFilter.class.php 2010-05-19 12:50:54 UTC 
(rev 29523)
+++ branches/1.4/lib/filter/sfRenderingFilter.class.php 2010-05-19 12:55:30 UTC 
(rev 29524)
@@ -46,6 +46,9 @@
     }
 
     // send headers + content
-    $response->send();
+    if (sfView::RENDER_VAR != $this->context->getController()->getRenderMode())
+    {
+        $response->send();
+    }
   }
 }

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to