[LON-CAPA-cvs] cvs: loncom /homework randomlabel.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 08 Jan 2004 20:05:13 -0000


sakharuk		Thu Jan  8 15:05:13 2004 EDT

  Modified files:              
    /loncom/homework	randomlabel.pm 
  Log:
  Bug 2434 (images not converted when printing from construction space) is fixed. This bug is about randomly labeled problems and it's different then 2521.
  
  
Index: loncom/homework/randomlabel.pm
diff -u loncom/homework/randomlabel.pm:1.53 loncom/homework/randomlabel.pm:1.54
--- loncom/homework/randomlabel.pm:1.53	Mon Nov 10 19:25:24 2003
+++ loncom/homework/randomlabel.pm	Thu Jan  8 15:05:13 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # random labelling tool
 #
-# $Id: randomlabel.pm,v 1.53 2003/11/11 00:25:24 albertel Exp $
+# $Id: randomlabel.pm,v 1.54 2004/01/08 20:05:13 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -124,7 +124,9 @@
 		    $temp_file = Apache::File->new('>>'.$filename);
 		    $newbgimg =~ s/(.*)\/res\//\/home\/httpd\/html\/res\//;
 		    print $temp_file "$newbgimg\n";
-		    $bgimg=~s/\/home\/httpd\/html\/res/\/home\/httpd\/prtspool/;		}
+		    $bgimg=~s/\/home\/httpd\/html\/res/\/home\/httpd\/prtspool/;
+		    $bgimg=~s|\/home\/([^\/]*)\/public_html\/|\/home\/httpd\/prtspool\/$1\/|;
+		}
 	    }
 	}
 	$bgimg=~s/\/$//;