Skip to content

Commit

Permalink
[TwigBundle] Fix trace to not show 'in at line' when file/line are em…
Browse files Browse the repository at this point in the history
…pty.
  • Loading branch information
dpb587 committed Nov 12, 2011
1 parent bb5fb79 commit 4858fbe
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -5,10 +5,10 @@
{{ trace.type ~ trace.function }}
</strong>
({{ trace.args|format_args }})
<br />
{% endif %}

{% if trace.file is defined and trace.line is defined %}
{% if trace.file is defined and trace.file and trace.line is defined and trace.line %}
{{ trace.function ? '<br />' : '' }}
in {{ trace.file|format_file(trace.line) }}&nbsp;
{% spaceless %}
<a href="#" onclick="toggle('trace_{{ prefix ~ '_' ~ i }}'); switchIcons('icon_{{ prefix ~ '_' ~ i }}_open', 'icon_{{ prefix ~ '_' ~ i }}_close'); return false;">
Expand Down

0 comments on commit 4858fbe

Please sign in to comment.