Fix getComputedData

This commit is contained in:
Jérémy Derussé 2015-01-25 19:37:18 +01:00
parent 9e8cb01fde
commit e8ca06aaa0

View File

@ -93,7 +93,7 @@ class TwigDataCollector extends DataCollector implements LateDataCollectorInterf
$this->computed = $this->computeData($this->getProfile()); $this->computed = $this->computeData($this->getProfile());
} }
return $this->computed['index']; return $this->computed[$index];
} }
private function computeData(\Twig_Profiler_Profile $profile) private function computeData(\Twig_Profiler_Profile $profile)