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

Diff of /branches/rel-2-3-dev/webwork2/lib/WeBWorK/PG.pm

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

Revision 4439 Revision 4440
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.66 2006/08/14 18:15:11 sh002i Exp $ 4# $CVSHeader: webwork2/lib/WeBWorK/PG.pm,v 1.66.2.1 2006/08/24 21:57:23 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.
35 plainText => "HTML", 35 plainText => "HTML",
36 formattedText => "HTML_tth", 36 formattedText => "HTML_tth",
37 images => "HTML_dpng", 37 images => "HTML_dpng",
38 jsMath => "HTML_jsMath", 38 jsMath => "HTML_jsMath",
39 asciimath => "HTML_asciimath", 39 asciimath => "HTML_asciimath",
40 LaTeXMathML => "HTML_LaTeXMathML",
40}; 41};
41 42
42sub new { 43sub new {
43 shift; # throw away invocant -- we don't need it 44 shift; # throw away invocant -- we don't need it
44 my ($ce, $user, $key, $set, $problem, $psvn, $formFields, 45 my ($ce, $user, $key, $set, $problem, $psvn, $formFields,
139 # ADDED: dvipngTempDir 140 # ADDED: dvipngTempDir
140 # ADDED: jsMathURL 141 # ADDED: jsMathURL
141 # ADDED: asciimathURL 142 # ADDED: asciimathURL
142 # ADDED: macrosPath 143 # ADDED: macrosPath
143 # REMOVED: macrosDirectory, courseScriptsDirectory 144 # REMOVED: macrosDirectory, courseScriptsDirectory
145 # ADDED: LaTeXMathML
144 146
145 $envir{cgiDirectory} = undef; 147 $envir{cgiDirectory} = undef;
146 $envir{cgiURL} = undef; 148 $envir{cgiURL} = undef;
147 $envir{classDirectory} = undef; 149 $envir{classDirectory} = undef;
148 $envir{macrosPath} = $ce->{pg}->{directories}{macrosPath}; 150 $envir{macrosPath} = $ce->{pg}->{directories}{macrosPath};
156 $envir{scriptDirectory} = undef; 158 $envir{scriptDirectory} = undef;
157 $envir{webworkDocsURL} = $ce->{webworkURLs}->{docs}."/"; 159 $envir{webworkDocsURL} = $ce->{webworkURLs}->{docs}."/";
158 $envir{localHelpURL} = $ce->{webworkURLs}->{local_help}."/"; 160 $envir{localHelpURL} = $ce->{webworkURLs}->{local_help}."/";
159 $envir{jsMathURL} = $ce->{webworkURLs}->{jsMath}; 161 $envir{jsMathURL} = $ce->{webworkURLs}->{jsMath};
160 $envir{asciimathURL} = $ce->{webworkURLs}->{asciimath}; 162 $envir{asciimathURL} = $ce->{webworkURLs}->{asciimath};
163 $envir{LaTeXMathMLURL} = $ce->{webworkURLs}->{LaTeXMathML};
161 $envir{server_root_url} = $ce->{apache_root_url}; 164 $envir{server_root_url} = $ce->{apache_root_url};
162 165
163 # Information for sending mail 166 # Information for sending mail
164 167
165 $envir{mailSmtpServer} = $ce->{mail}->{smtpServer}; 168 $envir{mailSmtpServer} = $ce->{mail}->{smtpServer};

Legend:
Removed from v.4439  
changed lines
  Added in v.4440

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9