File tree 1 file changed +9
-1
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 169
169
{% if index == 2 %}
170
170
<ul class =" sf-call-stack" id =" {{ id }}" class =" hidden" >
171
171
{% endif %}
172
+
172
173
{% if call .class is defined %}
173
174
{% set from = call .class | abbr_class ~ ' ::' ~ call .function | abbr_method() %}
174
175
{% elseif call .function is defined %}
179
180
{% set from = ' -' %}
180
181
{% endif %}
181
182
182
- <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 >
183
+ {% set file_name = (call .file is defined and call .line is defined ) ? call .file | replace ({' \\' : ' /' })| split (' /' )| last %}
184
+
185
+ <li >
186
+ {{ from | raw }}
187
+ {% if file_name %}
188
+ <span class =" text-small" >(called from {{ call .file | format_file(call .line , file_name )| raw }})</span >
189
+ {% endif %}
190
+ </li >
183
191
184
192
{% if index == stack | length - 1 %}
185
193
</ul >
You can’t perform that action at this time.
0 commit comments