Bug 16520: Allow per-VirtualHost environment variables with Plack
[koha.git] / misc / plack / koha.psgi
index 330335d..a66b2ec 100644 (file)
@@ -95,6 +95,9 @@ builder {
                path => qr{^/(intranet|opac)-tmpl/},
                root => "$ENV{INTRANETDIR}/koha-tmpl/";
 
+    # + is required so Plack doesn't try to prefix Plack::Middleware::
+    enable "+Koha::Middleware::SetEnv";
+
        mount "/cgi-bin/koha" => $app;
        mount "/" => $home;