Skip to content

Commit

Permalink
bug #30037 Disable Twig in the profiler menu when Twig is not used (j…
Browse files Browse the repository at this point in the history
…aviereguiluz)

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
-------

b474081 Disable Twig in the profiler menu when Twig is not used
  • Loading branch information
nicolas-grekas committed Jan 30, 2019
2 parents 591c805 + b474081 commit fb43484
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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>
Expand Down

0 comments on commit fb43484

Please sign in to comment.