[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

trunk/webwork2/lib/WeBWorK/PG.pm Revision 4674 branches/rel-2-4-dev/webwork2/lib/WeBWorK/PG.pm Revision 5243
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: webwork2/lib/WeBWorK/PG.pm,v 1.68 2006/08/24 21:16:36 sh002i Exp $ 4# $CVSHeader: webwork2/lib/WeBWorK/PG.pm,v 1.71 2006/12/05 20:59:45 sh002i Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
176 176
177 # ---------------------------------------------------------------------- 177 # ----------------------------------------------------------------------
178 178
179 # ADDED: ImageGenerator for images mode 179 # ADDED: ImageGenerator for images mode
180 if (defined $extras->{image_generator}) { 180 if (defined $extras->{image_generator}) {
181 #$envir{imagegen} = $extras->{image_generator};
181 # only allow access to the add() method 182 # only allow access to the add() method
182 $envir{imagegen} = new WeBWorK::Utils::RestrictedClosureClass($extras->{image_generator}, "add"); 183 $envir{imagegen} = new WeBWorK::Utils::RestrictedClosureClass($extras->{image_generator}, "add");
184 }
185
186 if (defined $extras->{mailer}) {
187 #my $rmailer = new WeBWorK::Utils::RestrictedClosureClass($extras->{mailer},
188 # qw/Open SendEnc Close Cancel skipped_recipients error error_msg/);
189 #my $safe_hole = new Safe::Hole {};
190 #$envir{mailer} = $safe_hole->wrap($rmailer);
191 $envir{mailer} = new WeBWorK::Utils::RestrictedClosureClass($extras->{mailer}, "add_message");
183 } 192 }
184 193
185 # ADDED: jsMath options 194 # ADDED: jsMath options
186 $envir{jsMath} = {%{$ce->{pg}{displayModeOptions}{jsMath}}}; 195 $envir{jsMath} = {%{$ce->{pg}{displayModeOptions}{jsMath}}};
187 196

Legend:
Removed from v.4674  
changed lines
  Added in v.5243

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9