Pass ENV down to template environment
authorBill Erickson <berick@esilibrary.com>
Fri, 10 Jun 2011 18:21:13 +0000 (14:21 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 10 Jun 2011 18:21:13 +0000 (14:21 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm

index 36e6797..b6b4ed2 100644 (file)
@@ -57,7 +57,7 @@ sub handler {
         }
     });
 
-    unless($tt->process($template, {ctx => $ctx, l => set_text_handler($ctx, $r)})) {
+    unless($tt->process($template, {ctx => $ctx, ENV => \%ENV, l => set_text_handler($ctx, $r)})) {
         $r->log->warn('egweb: template error: ' . $tt->error);
         return Apache2::Const::HTTP_INTERNAL_SERVER_ERROR;
     }