[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Fri Dec 28 12:12:49 EST 2012
raeburn Fri Dec 28 17:12:49 2012 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- Prevent "Edit" icon in Functions menu when generating printout for .page.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.404 loncom/interface/lonmenu.pm:1.405
--- loncom/interface/lonmenu.pm:1.404 Fri Dec 28 17:08:44 2012
+++ loncom/interface/lonmenu.pm Fri Dec 28 17:12:49 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.404 2012/12/28 17:08:44 raeburn Exp $
+# $Id: lonmenu.pm,v 1.405 2012/12/28 17:12:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -875,7 +875,8 @@
$forceedit,$forceview,$forcereg,
$env{'form.title'},$env{'form.suppurl'});
}
- } elsif ($resurl !~ m{^/?adm/($match_domain)/($match_username)/aboutme$}) {
+ } elsif (($resurl !~ m{^/?adm/($match_domain)/($match_username)/aboutme$}) &&
+ ($resurl ne '/cgi-bin/printout.pl')) {
if ($env{'request.filename'}) {
my $file=&Apache::lonnet::declutter($env{'request.filename'});
($cfile,$home,$switchserver,$forceedit,$forceview) =
More information about the LON-CAPA-cvs
mailing list