[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

www lon-capa-cvs@mail.lon-capa.org
Thu, 23 May 2002 21:24:06 -0000


www		Thu May 23 17:24:06 2002 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  Only register pages that are on the maps for a course.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.172 loncom/xml/lonxml.pm:1.173
--- loncom/xml/lonxml.pm:1.172	Thu May 23 17:12:44 2002
+++ loncom/xml/lonxml.pm	Thu May 23 17:24:06 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.172 2002/05/23 21:12:44 albertel Exp $
+# $Id: lonxml.pm,v 1.173 2002/05/23 21:24:06 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -332,7 +332,7 @@
     my $target = shift;
     my $result = '';
     if (($ENV{'request.publicaccess'}) || 
-       ($ENV{'REQUEST_URI'} eq '/res/adm/pages/menu.html')) {
+       (!&Apache::lonnet::is_on_map($ENV{'REQUEST_URI'}))) {
 	return 
          '<script>function LONCAPAreg(){} function LONCAPAstale(){}</script>';
     }