--- loncom/interface/lonsource.pm 2004/07/08 20:17:59 1.8 +++ loncom/interface/lonsource.pm 2005/06/23 23:24:53 1.13 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Souce Code handler # -# $Id: lonsource.pm,v 1.8 2004/07/08 20:17:59 taceyjo1 Exp $ +# $Id: lonsource.pm,v 1.13 2005/06/23 23:24:53 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -31,7 +31,7 @@ package Apache::lonsource; use strict; -use Apache::lonnet(); +use Apache::lonnet; use Apache::loncommon(); use Apache::lonhtmlcommon(); use Apache::lonsequence(); @@ -43,8 +43,7 @@ use HTML::Entities; sub make_link { my ($filename, $listname) = @_; - my $sourcelink = "http://".$ENV{'SERVER_NAME'}. - "/adm/source/?filename=".$filename."&listname=".$listname; + my $sourcelink = "/adm/source?filename=".$filename."&listname=".$listname; return $sourcelink; } @@ -55,11 +54,12 @@ sub stage_2 { &Apache::loncommon::content_type($r,'text/html'); my ($uname, $udom) = &Apache::loncacc::constructaccess('/~'.$author.'/',$r->dir_config('lonDefDomain')); $r->send_http_header; - $r->print('