bug #14696 Fix the rendering of deprecation log messages (stof)

This PR was merged into the 2.6 branch.

Discussion
----------

Fix the rendering of deprecation log messages

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #14695
| License       | MIT
| Doc PR        | n/a

A Twig variable was removed by mistake in #14182

Commits
-------

8b6efff Fix the rendering of deprecation log messages
This commit is contained in:
Fabien Potencier 2015-05-19 19:36:49 +02:00
commit 6989f2d1ef

View File

@ -112,6 +112,7 @@
{% macro display_message(log_index, log, is_deprecation) %}
{% if is_deprecation %}
{% set stack = log.context.stack|default([]) %}
{% set id = 'sf-call-stack-' ~ log_index %}
{% if stack %}
<a href="#" onclick="Sfjs.toggle('{{ id }}', document.getElementById('{{ id }}-on'), document.getElementById('{{ id }}-off')); return false;">