From 1f5e1606e87da4d81aac335562e7eb37c1521647 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 22 Oct 2007 16:26:35 -0500 Subject: [PATCH] Fixing a little bug with Context, USER_AGENT changed to HTTP_USER_AGENT Signed-off-by: Joshua Ferraro --- C4/Context.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 876a3f4704..a868df7eaf 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -17,9 +17,10 @@ package C4::Context; # Suite 330, Boston, MA 02111-1307 USA use strict; +use Data::Dumper; BEGIN { - if ($ENV{'USER_AGENT'}) { + if ($ENV{'HTTP_USER_AGENT'}) { require CGI::Carp; import CGI::Carp qw(fatalsToBrowser); sub handle_errors { -- 2.39.5