[LON-CAPA-cvs] cvs: loncom /homework randomlabel.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Thu, 16 Oct 2003 19:23:58 -0000
sakharuk Thu Oct 16 15:23:58 2003 EDT
Modified files:
/loncom/homework randomlabel.pm
Log:
Bug 2287 (automatic eps generation needs to preserves paths) is corrected for randomlabel problems. The only issue remains - how to individualize the name of eps file. It is neccessary if more then one student is trying to print the same problem at the same time and this problem contains different pictures with the same generic name. But may be this is impossible situation.
Index: loncom/homework/randomlabel.pm
diff -u loncom/homework/randomlabel.pm:1.50 loncom/homework/randomlabel.pm:1.51
--- loncom/homework/randomlabel.pm:1.50 Thu Sep 25 10:05:44 2003
+++ loncom/homework/randomlabel.pm Thu Oct 16 15:23:58 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# random labelling tool
#
-# $Id: randomlabel.pm,v 1.50 2003/09/25 14:05:44 sakharuk Exp $
+# $Id: randomlabel.pm,v 1.51 2003/10/16 19:23:58 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -120,9 +120,7 @@
$temp_file = Apache::File->new('>>'.$filename);
$newbgimg =~ s/(.*)\/res\//\/home\/httpd\/html\/res\//;
print $temp_file "$newbgimg\n";
- $bgimg =~ m/\/([^\/]+)$/;
- $bgimg = '/home/httpd/prtspool/'.$1;
- }
+ $bgimg=~s/\/home\/httpd\/html\/res/\/home\/httpd\/prtspool/; }
}
}
$bgimg=~s/\/$//;