Browse Source

[Templating] fix problem with PHP 5.4

Fabien Potencier 14 years ago
parent
commit
ba9e3dec69
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/Symfony/Component/Templating/Helper/SlotsHelper.php

+ 1 - 3
src/Symfony/Component/Templating/Helper/SlotsHelper.php

@@ -51,15 +51,13 @@ class SlotsHelper extends Helper
      */
     public function stop()
     {
-        $content = ob_get_clean();
-
         if (!$this->openSlots) {
             throw new \LogicException('No slot started.');
         }
 
         $name = array_pop($this->openSlots);
 
-        $this->slots[$name] = $content;
+        $this->slots[$name] = ob_get_clean();
     }
 
     /**