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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Fri, 28 Mar 2003 18:15:24 -0000


bowersj2		Fri Mar 28 13:15:24 2003 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  Take the request object out of the navmap->new call.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.78 loncom/homework/grades.pm:1.79
--- loncom/homework/grades.pm:1.78	Thu Mar 27 16:26:07 2003
+++ loncom/homework/grades.pm	Fri Mar 28 13:15:24 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.78 2003/03/27 21:26:07 albertel Exp $
+# $Id: grades.pm,v 1.79 2003/03/28 18:15:24 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2418,8 +2418,7 @@
 
 sub getSymbMap {
     my ($request) = @_;
-    my $navmap = Apache::lonnavmaps::navmap-> new($request,
-						  $ENV{'request.course.fn'}.'.db',
+    my $navmap = Apache::lonnavmaps::navmap-> new($ENV{'request.course.fn'}.'.db',
 						  $ENV{'request.course.fn'}.'_parms.db',1, 1);
 
     my $res = $navmap->firstResource(); # temp resource to access constants
@@ -2494,8 +2493,7 @@
     &sub_page_js($request);
     $request->print($result);
 
-    my $navmap = Apache::lonnavmaps::navmap-> new($request,
-						  $ENV{'request.course.fn'}.'.db',
+    my $navmap = Apache::lonnavmaps::navmap-> new($ENV{'request.course.fn'}.'.db',
 						  $ENV{'request.course.fn'}.'_parms.db',1, 1);
     my ($mapUrl, $id, $resUrl) = split(/___/, $ENV{'form.page'});
     my $map = $navmap->getResourceByUrl($resUrl); # add to navmaps
@@ -2650,8 +2648,7 @@
 
     $request->print($result);
 
-    my $navmap = Apache::lonnavmaps::navmap-> new($request,
-						  $ENV{'request.course.fn'}.'.db',
+    my $navmap = Apache::lonnavmaps::navmap-> new($ENV{'request.course.fn'}.'.db',
 						  $ENV{'request.course.fn'}.'_parms.db',1, 1);
     my ($mapUrl, $id, $resUrl) = split(/___/, $ENV{'form.page'});
     my $map = $navmap->getResourceByUrl($resUrl); # add to navmaps