bug #30037 Disable Twig in the profiler menu when Twig is not used (javiereguiluz)

This PR was merged into the 3.4 branch.

Discussion
----------

Disable Twig in the profiler menu when Twig is not used

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #30033
| License       | MIT
| Doc PR        | -

Commits
-------

b47408179f Disable Twig in the profiler menu when Twig is not used
This commit is contained in:
Nicolas Grekas 2019-01-30 12:31:21 +01:00
commit fb43484f85
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
{% endblock %}
{% block menu %}
<span class="label">
<span class="label {{ 0 == collector.templateCount ? 'disabled' }}">
<span class="icon">{{ include('@WebProfiler/Icon/twig.svg') }}</span>
<strong>Twig</strong>
</span>