Fixes the stack traces of the deprecation logs

This commit is contained in:
Javier Eguiluz 2015-11-25 09:53:09 +01:00
parent 074a4bf89e
commit 09f489530b

View File

@ -169,6 +169,7 @@
{% if index == 2 %}
<ul class="sf-call-stack" id="{{ id }}" class="hidden">
{% endif %}
{% if call.class is defined %}
{% set from = call.class|abbr_class ~ '::' ~ call.function|abbr_method() %}
{% elseif call.function is defined %}
@ -179,7 +180,14 @@
{% set from = '-' %}
{% endif %}
<li><span class="text-small">Called from</span> {{ call.file is defined and call.line is defined ? call.file|format_file(call.line, from) : from|raw }}</li>
{% set file_name = (call.file is defined and call.line is defined) ? call.file|replace({'\\': '/'})|split('/')|last %}
<li>
{{ from|raw }}
{% if file_name %}
<span class="text-small">(called from {{ call.file|format_file(call.line, file_name)|raw }})</span>
{% endif %}
</li>
{% if index == stack|length - 1 %}
</ul>