[system] / branches / rel-2-4-patches / webwork2 / lib / WeBWorK / PG.pm Repository:
ViewVC logotype

Diff of /branches/rel-2-4-patches/webwork2/lib/WeBWorK/PG.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 608 Revision 609
44 44
45 # install a local warn handler to collect warnings 45 # install a local warn handler to collect warnings
46 my $warnings = ""; 46 my $warnings = "";
47 if ($courseEnv->{pg}->{options}->{catchWarnings}) { 47 if ($courseEnv->{pg}->{options}->{catchWarnings}) {
48 local $SIG{__WARN__} = sub { $warnings .= shift }; 48 local $SIG{__WARN__} = sub { $warnings .= shift };
49 } else {
50 $warnings = "WeBWorK::PG: PG warnings are not being caught. Check STDERR.\n";
51 } 49 }
52 50
53 # create a Translator 51 # create a Translator
54 #warn "PG: creating a Translator\n"; 52 #warn "PG: creating a Translator\n";
55 my $translator = WeBWorK::PG::Translator->new; 53 my $translator = WeBWorK::PG::Translator->new;

Legend:
Removed from v.608  
changed lines
  Added in v.609

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9