--- loncom/xml/lonxml.pm 2002/05/16 00:56:46 1.169
+++ loncom/xml/lonxml.pm 2002/05/23 21:24:06 1.173
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.169 2002/05/16 00:56:46 albertel Exp $
+# $Id: lonxml.pm,v 1.173 2002/05/23 21:24:06 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -135,6 +135,9 @@ $prevent_entity_encode=0;
# has the dynamic menu been updated to know about this resource
$Apache::lonxml::registered=0;
+# a pointer the the Apache request object
+$Apache::lonxml::request='';
+
sub xmlbegin {
my $output='';
if ($ENV{'browser.mathml'}) {
@@ -329,7 +332,7 @@ sub registerurl {
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
'';
}
@@ -347,7 +350,7 @@ ENDSUBM
}
if (&Apache::lonnet::allowed('mgr',$ENV{'request.course.id'})) {
$hwkadd.=(<