From 908cab06e90459ab76d033ee57889a67299ca703 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 9 Dec 2005 04:47:53 +0000 Subject: [PATCH] fix a bug where the list of macros does not work --- lib/WebGUI/i18n/English/Automated_Information.pm | 3 +++ sbin/preload.perl | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/i18n/English/Automated_Information.pm b/lib/WebGUI/i18n/English/Automated_Information.pm index 154886007..d69865a8f 100644 --- a/lib/WebGUI/i18n/English/Automated_Information.pm +++ b/lib/WebGUI/i18n/English/Automated_Information.pm @@ -1,5 +1,8 @@ package WebGUI::i18n::English::Automated_Information; +##This module must not be preloaded, since it requires that $session +##be populated when the module is use'ed. + use WebGUI::Session; use WebGUI::International; diff --git a/sbin/preload.perl b/sbin/preload.perl index 001c2c6b3..449e780da 100644 --- a/sbin/preload.perl +++ b/sbin/preload.perl @@ -36,7 +36,10 @@ use WebGUI (); use WebGUI::Utility (); use File::Find (); my @modules = (); -my @excludes = (); +##The Automated_Information module includes code that requires that $session be active when it is +##called. By preloading it before $session is defined, it causes all of the generated information +#to be empty +my @excludes = qw(WebGUI::i18n::English::Automated_Information); open(FILE,"<".$webguiRoot."/sbin/preload.exclude"); while () { chomp;