From 414e87b58b424a3f7af4e4ab039d63a5bd1c87f1 Mon Sep 17 00:00:00 2001 From: Loick Piera Date: Thu, 6 Feb 2014 15:06:43 +0100 Subject: [PATCH 1/2] Fix null secure value in method.html.twig --- Resources/views/method.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/method.html.twig b/Resources/views/method.html.twig index 2a982cf..e5e6598 100644 --- a/Resources/views/method.html.twig +++ b/Resources/views/method.html.twig @@ -193,7 +193,7 @@ {% if enableSandbox %}
- {% 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. {% else %}
From b198e240ce044f61341220385a99d9a1ba1150d0 Mon Sep 17 00:00:00 2001 From: Loick Piera Date: Thu, 6 Feb 2014 15:12:26 +0100 Subject: [PATCH 2/2] Fix null host value in layout.html.twig --- Resources/views/layout.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index beea97c..a55e62c 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -254,7 +254,7 @@ } // 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() }}'; {% else -%} var endpoint = '{{ endpoint }}';