[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
droeschl
droeschl@source.lon-capa.org
Mon, 06 Jul 2009 17:10:11 -0000
droeschl Mon Jul 6 17:10:11 2009 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
Prevents top menu from being shown if inhibitmenu was set when ressource was initially called.
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.453 loncom/homework/structuretags.pm:1.454
--- loncom/homework/structuretags.pm:1.453 Tue Jun 30 10:18:47 2009
+++ loncom/homework/structuretags.pm Mon Jul 6 17:10:10 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.453 2009/06/30 10:18:47 bisitz Exp $
+# $Id: structuretags.pm,v 1.454 2009/07/06 17:10:10 droeschl Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -272,6 +272,7 @@
if (!defined($found{'form'})) {
$form_tag_start='<form name="lonhomework" enctype="multipart/form-data" method="post" action="';
my $uri = &Apache::lonenc::check_encrypt($env{'request.uri'});
+ $uri .= '?inhibitmenu=yes' if $env{'form.inhibitmenu'};
$form_tag_start.=$uri.'" ';
if ($target eq 'edit') {
$form_tag_start.=&Apache::edit::form_change_detection();