mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Merge pull request #332 from Pyrech/master
Fix twig errors when generating html doc
This commit is contained in:
commit
14571944b4
@ -254,7 +254,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// prepare the api enpoint
|
// prepare the api enpoint
|
||||||
{% if endpoint == '' and app.request is defined and app.request.host -%}
|
{% if endpoint == '' and app.request is not null and app.request.host -%}
|
||||||
var endpoint = '{{ app.request.getBaseUrl() }}';
|
var endpoint = '{{ app.request.getBaseUrl() }}';
|
||||||
{% else -%}
|
{% else -%}
|
||||||
var endpoint = '{{ endpoint }}';
|
var endpoint = '{{ endpoint }}';
|
||||||
|
@ -193,7 +193,7 @@
|
|||||||
|
|
||||||
{% if enableSandbox %}
|
{% if enableSandbox %}
|
||||||
<div class="pane sandbox">
|
<div class="pane sandbox">
|
||||||
{% if app.request.secure != data.https %}
|
{% if app.request is not null and app.request.secure != data.https %}
|
||||||
Please reload the documentation using the scheme {% if data.https %}HTTPS{% else %}HTTP{% endif %} if you want to use the sandbox.
|
Please reload the documentation using the scheme {% if data.https %}HTTPS{% else %}HTTP{% endif %} if you want to use the sandbox.
|
||||||
{% else %}
|
{% else %}
|
||||||
<form method="{{ data.method|upper }}" action="{% if data.host is defined %}{{ data.https ? 'https://' : 'http://' }}{{ data.host }}{% endif %}{{ data.uri }}">
|
<form method="{{ data.method|upper }}" action="{% if data.host is defined %}{{ data.https ? 'https://' : 'http://' }}{{ data.host }}{% endif %}{{ data.uri }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user