--- loncom/homework/randomlabel.pm 2008/12/19 14:28:14 1.94 +++ loncom/homework/randomlabel.pm 2011/11/14 02:17:47 1.96 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # random labelling tool # -# $Id: randomlabel.pm,v 1.94 2008/12/19 14:28:14 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 @@ sub start_randomlabel { 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; @@ -223,7 +223,7 @@ sub end_randomlabel { &Apache::lonnet::appenv(\%args); } elsif ($target eq 'tex') { $result='\end{picture}\\\\'; - $result.= ' \vskip -'.$height_param.' mm } \\\\ '; + $result.= ' \vskip -'.$height_param.' mm } \\newline '; } elsif ($target eq 'edit') { $result.=&Apache::edit::end_table; }