mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 20:36:33 +00:00
fixed profiler unicity when several ones are registered
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
* 1.35.2 (2018-XX-XX)
|
||||
|
||||
* n/a
|
||||
* fixed a regression in the way the profiler is registered in templates
|
||||
|
||||
* 1.35.1 (2018-03-02)
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ class Twig_Profiler_NodeVisitor_Profiler extends Twig_BaseNodeVisitor
|
||||
|
||||
private function getVarName()
|
||||
{
|
||||
return sprintf('__internal_%s', hash('sha256', __METHOD__));
|
||||
return sprintf('__internal_%s', hash('sha256', $this->extensionName));
|
||||
}
|
||||
|
||||
public function getPriority()
|
||||
|
||||
Reference in New Issue
Block a user