Skip to content

Commit

Permalink
[Templating] renamed content slot to _content to avoid name collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 6, 2010
1 parent da36417 commit 7fce03c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Symfony/Components/Templating/Engine.php
Expand Up @@ -121,12 +121,12 @@ public function render($name, array $parameters = array())
if ($this->parents[$name])
{
$slots = $this->get('slots');
$this->stack[] = $slots->get('content');
$slots->set('content', $content);
$this->stack[] = $slots->get('_content');
$slots->set('_content', $content);

$content = $this->render($this->parents[$name], $parameters);

$slots->set('content', array_pop($this->stack));
$slots->set('_content', array_pop($this->stack));
}

return $content;
Expand Down

0 comments on commit 7fce03c

Please sign in to comment.