--- loncom/xml/londefdef.pm 2003/10/01 21:13:50 1.178
+++ loncom/xml/londefdef.pm 2003/10/21 19:40:32 1.185
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.178 2003/10/01 21:13:50 albertel Exp $
+# $Id: londefdef.pm,v 1.185 2003/10/21 19:40:32 albertel Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -140,7 +140,7 @@ sub end_tthoption {
return $result;
}
-#-- tag
+#-- tag (end tag optional)
sub start_html {
my ($target,$token) = @_;
my $currentstring = '';
@@ -188,7 +188,7 @@ sub end_html {
return $currentstring;
}
-#--
tag
+#-- tag (end tag optional)
sub start_head {
my ($target,$token) = @_;
my $currentstring = '';
@@ -201,14 +201,14 @@ sub start_head {
sub end_head {
my ($target,$token) = @_;
my $currentstring = '';
- if ($target eq 'web') {
+ if ($target eq 'web' && $ENV{'request.state'} eq 'published') {
$currentstring = &Apache::lonmenu::registerurl(undef,$target).
$token->[2];
}
return $currentstring;
}
-#--