Merge pull request #201 from adamwojs/fix_deprecated_spacelesss_tag

Removed deprecated spaceless tag
This commit is contained in:
Grégoire Passault 2019-09-23 15:07:20 +02:00 committed by GitHub
commit b703ed1a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
{% if is_human %} {% if is_human %}
- -
{% else %} {% else %}
{% spaceless %} {% apply spaceless %}
<img class="captcha_image" id="{{ image_id }}" src="{{ captcha_code }}" alt="" title="captcha" width="{{ captcha_width }}" height="{{ captcha_height }}" /> <img class="captcha_image" id="{{ image_id }}" src="{{ captcha_code }}" alt="" title="captcha" width="{{ captcha_width }}" height="{{ captcha_height }}" />
{% if reload %} {% if reload %}
<script type="text/javascript"> <script type="text/javascript">
@ -14,6 +14,6 @@
<a class="captcha_reload" href="javascript:reload_{{ image_id }}();">{{ 'Renew'|trans({}, 'gregwar_captcha') }}</a> <a class="captcha_reload" href="javascript:reload_{{ image_id }}();">{{ 'Renew'|trans({}, 'gregwar_captcha') }}</a>
{% endif %} {% endif %}
{{ form_widget(form) }} {{ form_widget(form) }}
{% endspaceless %} {% endapply %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -20,7 +20,8 @@
"php": ">=5.3.9", "php": ">=5.3.9",
"gregwar/captcha": "~1.1", "gregwar/captcha": "~1.1",
"symfony/framework-bundle": "~2.8|~3.0|~4.0", "symfony/framework-bundle": "~2.8|~3.0|~4.0",
"symfony/form": "~2.8|~3.0|~4.0" "symfony/form": "~2.8|~3.0|~4.0",
"twig/twig": "^1.40|^2.9"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {