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;