Skip to content

Commit 1db0925

Browse files
committed
bug symfony#18457 [WebProfilerBundle] Fixed error from unset twig variable (simonsargeant)
This PR was squashed before being merged into the 2.8 branch (closes symfony#18457). Discussion ---------- [WebProfilerBundle] Fixed error from unset twig variable | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Minor bug, fixes error from twig variable which was removed in 2.8 Here was where it was originally set https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig#L69 Replaced with expected class name Commits ------- 3e2c4c9 [WebProfilerBundle] Fixed error from unset twig variable
2 parents 71c5444 + 3e2c4c9 commit 1db0925

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,24 @@
5050
</span>
5151
</div>
5252

53-
{% if 'n/a' != collector.appname %}
53+
{% if 'n/a' is not same as(collector.appname) %}
5454
<div class="sf-toolbar-info-piece">
5555
<b>Kernel name</b>
5656
<span>{{ collector.appname }}</span>
5757
</div>
5858
{% endif %}
5959

60-
{% if 'n/a' != collector.env %}
60+
{% if 'n/a' is not same as(collector.env) %}
6161
<div class="sf-toolbar-info-piece">
6262
<b>Environment</b>
6363
<span>{{ collector.env }}</span>
6464
</div>
6565
{% endif %}
6666

67-
{% if 'n/a' != collector.debug %}
67+
{% if 'n/a' is not same as(collector.debug) %}
6868
<div class="sf-toolbar-info-piece">
6969
<b>Debug</b>
70-
<span class="{{ debug_status_class }}">{{ collector.debug ? 'enabled' : 'disabled' }}</span>
70+
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.debug ? 'green' : 'red' }}">{{ collector.debug ? 'enabled' : 'disabled' }}</span>
7171
</div>
7272
{% endif %}
7373
</div>

0 commit comments

Comments
 (0)