[system] / trunk / webwork2 / lib / WeBWorK / ContentGenerator / Problem.pm Repository:
ViewVC logotype

Diff of /trunk/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm

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

Revision 1131 Revision 1147
14 14
15use strict; 15use strict;
16use warnings; 16use warnings;
17use CGI qw(); 17use CGI qw();
18use File::Path qw(rmtree); 18use File::Path qw(rmtree);
19use File::Temp qw(tempdir);
20use WeBWorK::Form; 19use WeBWorK::Form;
21use WeBWorK::PG; 20use WeBWorK::PG;
22use WeBWorK::PG::IO; 21use WeBWorK::PG::IO;
23use WeBWorK::Utils qw(writeLog encodeAnswers decodeAnswers ref2string); 22use WeBWorK::Utils qw(writeLog encodeAnswers decodeAnswers ref2string makeTempDirectory);
24use WeBWorK::DB::Utils qw(global2user user2global findDefaults); 23use WeBWorK::DB::Utils qw(global2user user2global findDefaults);
25 24
26############################################################ 25############################################################
27# 26#
28# user 27# user
811 . $set->set_id . "." 810 . $set->set_id . "."
812 . $problem->problem_id . "." 811 . $problem->problem_id . "."
813 . $answerResult->{ans_name} . ".png"; 812 . $answerResult->{ans_name} . ".png";
814 813
815 # figure out where to put things 814 # figure out where to put things
816 my $wd = tempdir("webwork-dvipng-XXXXXXXX", DIR => $ce->{courseDirs}->{html_temp}); 815 my $wd = makeTempDirectory($ce->{courseDirs}->{html_temp}, "webwork-dvipng");
817 my $latex = $ce->{externalPrograms}->{latex}; 816 my $latex = $ce->{externalPrograms}->{latex};
818 my $dvipng = $ce->{externalPrograms}->{dvipng}; 817 my $dvipng = $ce->{externalPrograms}->{dvipng};
819 my $targetPath = $ce->{courseDirs}->{html_temp} . $targetPathCommon; 818 my $targetPath = $ce->{courseDirs}->{html_temp} . $targetPathCommon;
820 # should use surePathToTmpFile, but we have to 819 # should use surePathToTmpFile, but we have to
821 # isolate it from the problem enivronment first 820 # isolate it from the problem enivronment first

Legend:
Removed from v.1131  
changed lines
  Added in v.1147

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9