Added a new profiler_markup_version to improve BC of the new toolbar
This commit is contained in:
parent
2fb33191fe
commit
5070861326
@ -207,6 +207,7 @@ class ProfilerController
|
|||||||
'templates' => $this->getTemplateManager()->getTemplates($profile),
|
'templates' => $this->getTemplateManager()->getTemplates($profile),
|
||||||
'profiler_url' => $url,
|
'profiler_url' => $url,
|
||||||
'token' => $token,
|
'token' => $token,
|
||||||
|
'profiler_markup_version' => 2, // 1 = original toolbar, 2 = Symfony 2.8+ toolbar
|
||||||
)), 200, array('Content-Type' => 'text/html'));
|
)), 200, array('Content-Type' => 'text/html'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,8 @@
|
|||||||
'collector': profile.getcollector(name),
|
'collector': profile.getcollector(name),
|
||||||
'profiler_url': profiler_url,
|
'profiler_url': profiler_url,
|
||||||
'token': profile.token,
|
'token': profile.token,
|
||||||
'name': name
|
'name': name,
|
||||||
|
'profiler_markup_version': profiler_markup_version
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Reference in New Issue
Block a user