Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ec1cd4

Browse files
committed
Reverted the feature to display different toolbar versions
1 parent 084cca6 commit 7ec1cd4

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
*/
2929
class ProfilerController
3030
{
31-
const TOOLBAR_VERSION_1 = 1;
32-
const TOOLBAR_VERSION_2 = 2;
33-
3431
private $templateManager;
3532
private $generator;
3633
private $profiler;
@@ -205,15 +202,12 @@ public function toolbarAction(Request $request, $token)
205202
// the profiler is not enabled
206203
}
207204

208-
$toolbarVersion = Kernel::VERSION_ID < 20800 ? self::TOOLBAR_VERSION_1 : self::TOOLBAR_VERSION_2;
209-
210205
return new Response($this->twig->render('@WebProfiler/Profiler/toolbar.html.twig', array(
211206
'position' => $position,
212207
'profile' => $profile,
213208
'templates' => $this->getTemplateManager()->getTemplates($profile),
214209
'profiler_url' => $url,
215210
'token' => $token,
216-
'toolbar_version' => $toolbarVersion,
217211
)), 200, array('Content-Type' => 'text/html'));
218212
}
219213

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.html.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
'collector': profile.getcollector(name),
3131
'profiler_url': profiler_url,
3232
'token': profile.token,
33-
'name': name,
34-
'toolbar_version': toolbar_version
33+
'name': name
3534
})
3635
}}
3736
{% endfor %}

0 commit comments

Comments
 (0)