Development

#444 (templates get rendered twice)

You must first sign up to be able to contribute.

Ticket #444 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

templates get rendered twice

Reported by: tamcy Assigned to:
Priority: major Milestone:
Component: Version:
Keywords: Cc:
Qualification:

Description

When debug mode is active sfWebDebugFilter will append its debugging info before rendering. The filter try appending debug info before the </body> tag. But when has_layout is set to off, the </body> tag probably won't exist, so $content is equal to $newContent, causing line 73 to be executed, and there is a problem. The line reads

$newContent .= $content.$webDebug;

so the same content will be appended again! I think it should read

$newContent = $content.$webDebug;

Change History

04/19/06 12:50:51 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

fixed in r1226.