diff --git a/src/Symfony/Components/HttpKernel/Cache/Esi.php b/src/Symfony/Components/HttpKernel/Cache/Esi.php index 99a4f94fd9..1a5d39f315 100644 --- a/src/Symfony/Components/HttpKernel/Cache/Esi.php +++ b/src/Symfony/Components/HttpKernel/Cache/Esi.php @@ -210,7 +210,7 @@ class Esi throw new \RuntimeException('Unable to process an ESI tag without a "src" attribute.'); } - return sprintf('esi->handle($this, \'%s\', \'%s\', %s)->getContent() ?>'."\n", + return sprintf('esi->handle($this, \'%s\', \'%s\', %s) ?>'."\n", $options['src'], isset($options['alt']) ? $options['alt'] : null, isset($options['onerror']) && 'continue' == $options['onerror'] ? 'true' : 'false'