From 050549cb39ef934792822d3e427ca5bda6189924 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 7 Aug 2015 18:26:47 +0200 Subject: [PATCH] Fix uninit var when etherpad is disabled --- templates/default/join.html.ep | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/default/join.html.ep b/templates/default/join.html.ep index 36ae25e..6a049fa 100644 --- a/templates/default/join.html.ep +++ b/templates/default/join.html.ep @@ -544,10 +544,12 @@ $( document ).ready(function() { etherpad = { enabled: <%= get_opt_features->{etherpad} ? 'true' : 'false' %>, - % my $ethuri = Mojo::URL->new($config->{'etherpad.uri'}); + % if (get_opt_features->{etherpad}){ + % my $ethuri = Mojo::URL->new($config->{'etherpad.uri'}); host: "<%= $ethuri->scheme . '://' . $ethuri->authority %>", path: "<%= $ethuri->path . '/p/' %>", group: "<%= $etherpadGroup %>" + % } }; has_video = <%= ($video eq 'false') ? 'false' : 'true' %>; initJoin(roomName);