From ab8104f99f4d16afce10d41206d69e6094ab8cd7 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 7 Jan 2008 15:08:15 -0600 Subject: [PATCH] Fix for missing CGI object in call to themelanguage Signed-off-by: Joshua Ferraro --- C4/Reports.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Reports.pm b/C4/Reports.pm index cdc82eb82d..1785e9c5ab 100644 --- a/C4/Reports.pm +++ b/C4/Reports.pm @@ -18,6 +18,7 @@ package C4::Reports; # Suite 330, Boston, MA 02111-1307 USA use strict; +use CGI; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); use C4::Context; @@ -83,7 +84,8 @@ our %columns; my $columns_def_file = "columns.def"; my $htdocs = C4::Context->config('intrahtdocs'); my $section='intranet'; -my ($theme, $lang) = themelanguage($htdocs, $columns_def_file, $section); +my $cgi = new CGI; +my ($theme, $lang) = themelanguage($htdocs, $columns_def_file, $section,$cgi); my $full_path_to_columns_def_file="$htdocs/$theme/$lang/$columns_def_file"; open (COLUMNS,$full_path_to_columns_def_file); -- 2.39.5