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

raeburn raeburn at source.lon-capa.org
Sun Nov 13 21:17:47 EST 2011


raeburn		Mon Nov 14 02:17:47 2011 EDT

  Modified files:              
    /loncom/homework	randomlabel.pm 
  Log:
  - Use perlvar instead of static string: /home/httpd/html.
  
  
Index: loncom/homework/randomlabel.pm
diff -u loncom/homework/randomlabel.pm:1.95 loncom/homework/randomlabel.pm:1.96
--- loncom/homework/randomlabel.pm:1.95	Thu Feb  4 18:42:41 2010
+++ loncom/homework/randomlabel.pm	Mon Nov 14 02:17:47 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # random labelling tool
 #
-# $Id: randomlabel.pm,v 1.95 2010/02/04 18:42:41 raeburn Exp $
+# $Id: randomlabel.pm,v 1.96 2011/11/14 02:17:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -175,7 +175,7 @@
     if ( defined($bgimg) && $bgimg !~ /^https?\:/ ) {
 	$bgimg=&Apache::lonnet::filelocation($Apache::lonxml::pwd[-1],$bgimg);
 	if (&Apache::lonnet::repcopy($bgimg) ne 'ok') {
-	    $bgimg='/home/httpd/html/adm/lonKaputt/lonlogo_broken.gif';
+	    $bgimg=$Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/lonKaputt/lonlogo_broken.gif';
 	}
     }
     $Apache::randomlabel::obj_cnt=0;




More information about the LON-CAPA-cvs mailing list