From 6ed6c6fe95252bce6ddffa90539f7e09f951525b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 17 Jul 2015 09:22:29 +0200 Subject: [PATCH] Mojolicious::Plugin::RenderFile is also optional --- vroom.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vroom.pl b/vroom.pl index 9fdaf85..c7c0b28 100755 --- a/vroom.pl +++ b/vroom.pl @@ -9,7 +9,6 @@ use Mojolicious::Lite; use Mojolicious::Plugin::Mail; use Mojolicious::Plugin::Database; use Mojolicious::Plugin::StaticCompressor; -use Mojolicious::Plugin::RenderFile; use Vroom::Constants; use Vroom::Conf; use Crypt::SaltedHash; @@ -66,10 +65,12 @@ if ($config->{'etherpad.uri'} =~ m/https?:\/\/.*/ && $config->{'etherpad.api_key my $excel = eval { require File::Temp; require Excel::Writer::XLSX; + require Mojolicious::Plugin::RenderFile; }; if ($excel){ import File::Temp; import Excel::Writer::XLSX; + import Mojolicious::Plugin::RenderFile; $optf->{excel} = 1; }