--- loncom/interface/statistics/lonstathelpers.pm 2023/09/08 00:52:36 1.76.2.5.2.1 +++ loncom/interface/statistics/lonstathelpers.pm 2020/09/12 20:21:30 1.79 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstathelpers.pm,v 1.76.2.5.2.1 2023/09/08 00:52:36 raeburn Exp $ +# $Id: lonstathelpers.pm,v 1.79 2020/09/12 20:21:30 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -85,7 +85,7 @@ sub render_resource { ## ## Render the problem my ($base) = ($resource->src =~ m|^(.*/)[^/]*$|); - $base=&Apache::lonnet::absolute_url().$base; + $base="http://".$ENV{'SERVER_NAME'}.$base; my ($src,$symb)=($resource->link,&escape($resource->shown_symb)); my $rendered_problem = &Apache::lonnet::ssi_body($src.'?symb='.$symb); $rendered_problem =~ s/<\s*form\s*/parts}) { my (@response_ids,@response_types); - if (($include_tools) && ($res->is_tool)) { + if ($res->is_tool) { @response_ids = (); @response_types = ('tool'); } else {